Home
last modified time | relevance | path

Searched refs:SIZED (Results 1 – 25 of 61) sorted by relevance

123

/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DStreamOpFlagsTest.java178 assertFalse(StreamOpFlag.SIZED.isKnown(opsFlags)); in testApplySourceFlags()
179 assertTrue(StreamOpFlag.SIZED.isCleared(opsFlags)); in testApplySourceFlags()
180 assertFalse(StreamOpFlag.SIZED.isPreserved(opsFlags)); in testApplySourceFlags()
192 assertFalse(StreamOpFlag.SIZED.isKnown(streamFlags)); in testApplySourceFlags()
208 assertSpliteratorMask(StreamOpFlag.SIZED.set(), StreamOpFlag.IS_SIZED); in testSpliteratorMask()
209 assertSpliteratorMask(StreamOpFlag.SIZED.clear(), 0); in testSpliteratorMask()
229 assertStreamMask(StreamOpFlag.SIZED.set(), StreamOpFlag.IS_SIZED); in testStreamMask()
230 assertStreamMask(StreamOpFlag.SIZED.clear(), 0); in testStreamMask()
250 assertOpMask(StreamOpFlag.SIZED.set(), 0); in testOpMask()
251 assertOpMask(StreamOpFlag.SIZED.clear(), StreamOpFlag.NOT_SIZED); in testOpMask()
[all …]
DStreamFlagsTest.java68 EnumSet.of(ORDERED, SIZED), in testBaseStreams()
71 EnumSet.of(ORDERED, SIZED), in testBaseStreams()
74 EnumSet.of(SIZED, DISTINCT), in testBaseStreams()
77 EnumSet.of(ORDERED, SIZED, DISTINCT, SORTED), in testBaseStreams()
80 EnumSet.of(ORDERED, DISTINCT, SIZED), in testBaseStreams()
91 int expectedFlags = baseFlags & ~SIZED.set(); in testFilter()
DFlagOpTest.java164 EnumSet<StreamOpFlag> known = EnumSet.of(StreamOpFlag.ORDERED, StreamOpFlag.SIZED); in testFlagsSetSequence()
198 EnumSet<StreamOpFlag> known = EnumSet.of(StreamOpFlag.ORDERED, StreamOpFlag.SIZED); in testFlagsClearSequence()
229 EnumSet<StreamOpFlag> parKnown = EnumSet.of(StreamOpFlag.SIZED); in testFlagsSizedOrderedParallelCollect()
/libcore/luni/src/test/java/libcore/java/util/
DHashMapTest.java103 assertEquals(Spliterator.DISTINCT | Spliterator.SIZED, in test_spliterator_keySet()
128 assertEquals(Spliterator.SIZED, values.spliterator().characteristics()); in test_spliterator_values()
136 assertEquals(Spliterator.DISTINCT | Spliterator.SIZED, in test_spliterator_entrySet()
170 assertFalse(m.entrySet().spliterator().trySplit().hasCharacteristics(Spliterator.SIZED)); in test_entrySet_subsizeEstimates()
200 assertTrue(m.entrySet().spliterator().hasCharacteristics(Spliterator.SIZED)); in test_entrySet_spliterator_sizedButNotSubsized()
204 assertTrue(m.entrySet().spliterator().hasCharacteristics(Spliterator.SIZED)); in test_entrySet_spliterator_sizedButNotSubsized()
208 assertFalse(parent.hasCharacteristics(Spliterator.SIZED)); in test_entrySet_spliterator_sizedButNotSubsized()
209 assertFalse(child.hasCharacteristics(Spliterator.SIZED)); in test_entrySet_spliterator_sizedButNotSubsized()
DSpliteratorTester.java33 import static java.util.Spliterator.SIZED;
235 assertHasCharacteristics(SIZED, spliterator); in runSizedTests()
250 assertHasCharacteristics(SIZED | SUBSIZED, spliterator); in runSubSizedTests()
255 assertHasCharacteristics(SIZED | SUBSIZED, spliterator); in runSubSizedTests()
261 assertHasCharacteristics(SIZED | SUBSIZED, child); in runSubSizedTests()
DLinkedHashMapTest.java447 Spliterator.DISTINCT | Spliterator.ORDERED | Spliterator.SIZED in test_spliterator_keySet()
476 assertEquals(Spliterator.ORDERED | Spliterator.SIZED | Spliterator.SUBSIZED, in test_spliterator_values()
487 Spliterator.DISTINCT | Spliterator.ORDERED | Spliterator.SIZED | in test_spliterator_entrySet()
/libcore/ojluni/src/main/java/java/util/
DSpliterators.java858 return Spliterator.SIZED | Spliterator.SUBSIZED; in characteristics()
929 … this.characteristics = additionalCharacteristics | Spliterator.SIZED | Spliterator.SUBSIZED; in ArraySpliterator()
1014 … this.characteristics = additionalCharacteristics | Spliterator.SIZED | Spliterator.SUBSIZED; in IntArraySpliterator()
1097 … this.characteristics = additionalCharacteristics | Spliterator.SIZED | Spliterator.SUBSIZED; in LongArraySpliterator()
1180 … this.characteristics = additionalCharacteristics | Spliterator.SIZED | Spliterator.SUBSIZED; in DoubleArraySpliterator()
1275 this.characteristics = ((additionalCharacteristics & Spliterator.SIZED) != 0) in AbstractSpliterator()
1398 this.characteristics = ((additionalCharacteristics & Spliterator.SIZED) != 0) in AbstractIntSpliterator()
1508 this.characteristics = ((additionalCharacteristics & Spliterator.SIZED) != 0) in AbstractLongSpliterator()
1618 this.characteristics = ((additionalCharacteristics & Spliterator.SIZED) != 0) in AbstractDoubleSpliterator()
1714 ? characteristics | Spliterator.SIZED | Spliterator.SUBSIZED in IteratorSpliterator()
[all …]
DSpliterator.java408 return (characteristics() & SIZED) == 0 ? -1L : estimateSize(); in getExactSizeIfKnown()
521 public static final int SIZED = 0x00000040; field
DSplittableRandom.java854 return (Spliterator.SIZED | Spliterator.SUBSIZED | in characteristics()
910 return (Spliterator.SIZED | Spliterator.SUBSIZED | in characteristics()
967 return (Spliterator.SIZED | Spliterator.SUBSIZED | in characteristics()
DRandom.java1021 return (Spliterator.SIZED | Spliterator.SUBSIZED | in characteristics()
1076 return (Spliterator.SIZED | Spliterator.SUBSIZED | in characteristics()
1132 return (Spliterator.SIZED | Spliterator.SUBSIZED | in characteristics()
DLinkedHashMap.java583 return Spliterators.spliterator(this, Spliterator.SIZED | in spliterator()
634 return Spliterators.spliterator(this, Spliterator.SIZED | in spliterator()
697 return Spliterators.spliterator(this, Spliterator.SIZED | in spliterator()
/libcore/ojluni/src/main/java/java/util/stream/
DStreamOpFlag.java298 SIZED(3, enumConstant
642 public static final int IS_SIZED = SIZED.set;
648 public static final int NOT_SIZED = SIZED.clear;
DSortedOps.java140 else if (StreamOpFlag.SIZED.isKnown(flags)) in opWrapSink()
179 else if (StreamOpFlag.SIZED.isKnown(flags)) in opWrapSink()
218 else if (StreamOpFlag.SIZED.isKnown(flags)) in opWrapSink()
257 else if (StreamOpFlag.SIZED.isKnown(flags)) in opWrapSink()
DStreams.java126 return Spliterator.ORDERED | Spliterator.SIZED | Spliterator.SUBSIZED | in characteristics()
250 return Spliterator.ORDERED | Spliterator.SIZED | Spliterator.SUBSIZED | in characteristics()
324 return Spliterator.SIZED | Spliterator.SUBSIZED | in characteristics()
765 | (unsized ? Spliterator.SIZED | Spliterator.SUBSIZED : 0)); in characteristics()
DStreamSpliterators.java230 return StreamOpFlag.SIZED.isKnown(ph.getStreamAndOpFlags())
248 if ((c & Spliterator.SIZED) != 0) {
249 c &= ~(Spliterator.SIZED | Spliterator.SUBSIZED);
250 c |= (spliterator.characteristics() & (Spliterator.SIZED | Spliterator.SUBSIZED));
988 ~(Spliterator.SIZED | Spliterator.SUBSIZED | Spliterator.ORDERED); in characteristics()
1306 return (s.characteristics() & ~(Spliterator.SIZED | Spliterator.SUBSIZED | in characteristics()
DAbstractPipeline.java439 thisOpFlags = spliterator.hasCharacteristics(Spliterator.SIZED) in sourceSpliterator()
470 … return StreamOpFlag.SIZED.isKnown(getStreamAndOpFlags()) ? spliterator.getExactSizeIfKnown() : -1; in exactOutputSizeIfKnown()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DTestData.java107 … n -> StreamSupport.stream(n::spliterator, Spliterator.SIZED | Spliterator.ORDERED, false), in ofRefNode()
108 … n -> StreamSupport.stream(n::spliterator, Spliterator.SIZED | Spliterator.ORDERED, true), in ofRefNode()
136 int characteristics = Spliterator.SIZED | Spliterator.ORDERED; in ofNode()
167 int characteristics = Spliterator.SIZED | Spliterator.ORDERED; in ofNode()
198 int characteristics = Spliterator.SIZED | Spliterator.ORDERED; in ofNode()
DCollectorOps.java92 Assert.assertTrue(StreamOpFlag.SIZED.isKnown(flags)); in opEvaluateParallel()
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DTestData.java106 … n -> StreamSupport.stream(n::spliterator, Spliterator.SIZED | Spliterator.ORDERED, false), in ofRefNode()
107 … n -> StreamSupport.stream(n::spliterator, Spliterator.SIZED | Spliterator.ORDERED, true), in ofRefNode()
135 int characteristics = Spliterator.SIZED | Spliterator.ORDERED; in ofNode()
166 int characteristics = Spliterator.SIZED | Spliterator.ORDERED; in ofNode()
197 int characteristics = Spliterator.SIZED | Spliterator.ORDERED; in ofNode()
DCollectorOps.java91 Assert.assertTrue(StreamOpFlag.SIZED.isKnown(flags)); in opEvaluateParallel()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DConcatOpTest.java132 assertFalse(sp.hasCharacteristics(Spliterator.SIZED | Spliterator.SUBSIZED)); in assertUnsized()
139 assertTrue(sp.hasCharacteristics(Spliterator.SIZED | Spliterator.SUBSIZED)); in assertSized()
DRangeTest.java231 assertTrue(s.hasCharacteristics(Spliterator.SIZED | Spliterator.SUBSIZED)); in assertSizedAndSubSized()
235 assertFalse(s.hasCharacteristics(Spliterator.SIZED | Spliterator.SUBSIZED)); in assertNotSizedAndSubSized()
/libcore/ojluni/src/main/java/java/lang/
DCharSequence.java159 Spliterator.SUBSIZED | Spliterator.SIZED | Spliterator.ORDERED, in chars()
/libcore/ojluni/src/main/java/java/nio/
DBuffer.java183 Spliterator.SIZED | Spliterator.SUBSIZED | Spliterator.ORDERED;
/libcore/ojluni/src/main/java/java/util/concurrent/
DThreadLocalRandom.java763 return (Spliterator.SIZED | Spliterator.SUBSIZED | in characteristics()
818 return (Spliterator.SIZED | Spliterator.SUBSIZED | in characteristics()
874 return (Spliterator.SIZED | Spliterator.SUBSIZED | in characteristics()

123