/libcore/luni/src/test/java/libcore/java/util/ |
D | HashMapTest.java | 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() 201 assertFalse(m.entrySet().spliterator().hasCharacteristics(Spliterator.SUBSIZED)); in test_entrySet_spliterator_sizedButNotSubsized() 204 assertTrue(m.entrySet().spliterator().hasCharacteristics(Spliterator.SIZED)); in test_entrySet_spliterator_sizedButNotSubsized() 205 assertFalse(m.entrySet().spliterator().hasCharacteristics(Spliterator.SUBSIZED)); 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() 210 assertFalse(parent.hasCharacteristics(Spliterator.SUBSIZED)); in test_entrySet_spliterator_sizedButNotSubsized() 211 assertFalse(child.hasCharacteristics(Spliterator.SUBSIZED)); in test_entrySet_spliterator_sizedButNotSubsized()
|
D | MapDefaultMethodTester.java | 485 assertTrue(entrySet.spliterator().hasCharacteristics(Spliterator.DISTINCT)); in checkEntrySpliterator() 493 boolean isSized = entrySet.spliterator().hasCharacteristics(Spliterator.SIZED); in checkEntrySpliterator() 498 if (subSpliterator != null && subSpliterator.hasCharacteristics(Spliterator.SIZED)) { in checkEntrySpliterator()
|
D | SpliteratorsTest.java | 125 assertTrue(sp.hasCharacteristics(Spliterator.ORDERED)); in testSpliteratorObjectArray() 154 assertTrue(sp.hasCharacteristics(Spliterator.ORDERED)); in testSpliteratorObjectArrayRange() 468 assertTrue(sp.hasCharacteristics(Spliterator.ORDERED)); in testSpliterator_Collection() 497 assertTrue(sp.hasCharacteristics(Spliterator.ORDERED)); in testSpliterator_sizedIterator() 516 assertTrue(sp.hasCharacteristics(Spliterator.ORDERED)); in testSpliterator_unsizedIterator()
|
D | AbstractListTest.java | 144 assertTrue(spliteratorSupplier.get().hasCharacteristics( in checkSpliteratorOfRandomAccessList()
|
D | CollectionsTest.java | 1136 if (spliterator.hasCharacteristics(SIZED)) { in check_orderedSet() 1139 if (spliterator.hasCharacteristics(SUBSIZED)) { in check_orderedSet() 1193 if (spliterator.hasCharacteristics(SIZED)) { in check_orderedCollection() 1196 if (spliterator.hasCharacteristics(SUBSIZED)) { in check_orderedCollection()
|
D | SpliteratorTester.java | 335 assertTrue(msg, spliterator.hasCharacteristics(expectedCharacteristics)); in assertHasCharacteristics()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | ConcatTest.java | 119 … assertTrue(s1s.spliterator().hasCharacteristics(Spliterator.ORDERED), c1.getClass().toString()); in checkPrerequisites() 120 … assertTrue(s1p.spliterator().hasCharacteristics(Spliterator.ORDERED), c2.getClass().toString()); in checkPrerequisites() 121 … assertTrue(s2s.spliterator().hasCharacteristics(Spliterator.ORDERED), c1.getClass().toString()); in checkPrerequisites() 122 … assertTrue(s2p.spliterator().hasCharacteristics(Spliterator.ORDERED), c2.getClass().toString()); in checkPrerequisites() 127 assertFalse(sp.hasCharacteristics(Spliterator.DISTINCT), scenario); in assertConcatContent() 129 assertFalse(sp.hasCharacteristics(Spliterator.SORTED), scenario); in assertConcatContent() 131 assertEquals(sp.hasCharacteristics(Spliterator.ORDERED), ordered, scenario); in assertConcatContent()
|
D | ConcatOpTest.java | 132 assertFalse(sp.hasCharacteristics(Spliterator.SIZED | Spliterator.SUBSIZED)); in assertUnsized() 139 assertTrue(sp.hasCharacteristics(Spliterator.SIZED | Spliterator.SUBSIZED)); in assertSized()
|
D | RangeTest.java | 231 assertTrue(s.hasCharacteristics(Spliterator.SIZED | Spliterator.SUBSIZED)); in assertSizedAndSubSized() 235 assertFalse(s.hasCharacteristics(Spliterator.SIZED | Spliterator.SUBSIZED)); in assertNotSizedAndSubSized()
|
D | SortedOpTest.java | 131 assertTrue(s.hasCharacteristics(Spliterator.SORTED)); in testSorted() 134 assertFalse(s.hasCharacteristics(Spliterator.SORTED)); in testSorted()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | SpliteratorTestHelper.java | 204 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testForEach() 234 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testTryAdvance() 264 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testMixedTryAdvanceForEach() 295 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testMixedTraverseAndSplit() 362 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testSplitOnce() 389 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testSplitSixDeep() 485 boolean isOrdered = s.hasCharacteristics(Spliterator.ORDERED); in testSplitUntilNull() 585 assertTrue(s.hasCharacteristics(Spliterator.SUBSIZED), 592 if (s.hasCharacteristics(Spliterator.SUBSIZED)) { 593 assertTrue(s.hasCharacteristics(Spliterator.SIZED)); [all …]
|
D | TestData.java | 55 return spliterator().hasCharacteristics(Spliterator.ORDERED); in isOrdered()
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | SpliteratorTestHelper.java | 204 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testForEach() 234 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testTryAdvance() 264 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testMixedTryAdvanceForEach() 295 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testMixedTraverseAndSplit() 362 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testSplitOnce() 389 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testSplitSixDeep() 485 boolean isOrdered = s.hasCharacteristics(Spliterator.ORDERED); in testSplitUntilNull() 585 assertTrue(s.hasCharacteristics(Spliterator.SUBSIZED), 592 if (s.hasCharacteristics(Spliterator.SUBSIZED)) { 593 assertTrue(s.hasCharacteristics(Spliterator.SIZED)); [all …]
|
D | TestData.java | 54 return spliterator().hasCharacteristics(Spliterator.ORDERED); in isOrdered()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | SliceOps.java | 79 assert s.hasCharacteristics(Spliterator.SUBSIZED); in sliceSpliterator() 136 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { in makeRef() 166 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { in makeRef() 256 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { 278 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { 368 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { 390 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { 480 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { 502 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) {
|
D | Nodes.java | 321 if (size >= 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { in collect() 358 if (size >= 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { in collectInt() 396 if (size >= 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { in collectLong() 434 if (size >= 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { in collectDouble() 1837 assert spliterator.hasCharacteristics(Spliterator.SUBSIZED); 1848 assert spliterator.hasCharacteristics(Spliterator.SUBSIZED);
|
D | AbstractPipeline.java | 439 thisOpFlags = spliterator.hasCharacteristics(Spliterator.SIZED) in sourceSpliterator()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Spliterators.java | 974 if (hasCharacteristics(Spliterator.SORTED)) in getComparator() 1057 if (hasCharacteristics(Spliterator.SORTED)) in getComparator() 1140 if (hasCharacteristics(Spliterator.SORTED)) in getComparator() 1223 if (hasCharacteristics(Spliterator.SORTED)) in getComparator() 1832 if (hasCharacteristics(Spliterator.SORTED)) in getComparator() 1931 if (hasCharacteristics(Spliterator.SORTED)) in getComparator() 2025 if (hasCharacteristics(Spliterator.SORTED)) in getComparator() 2119 if (hasCharacteristics(Spliterator.SORTED)) in getComparator()
|
D | Spliterator.java | 446 default boolean hasCharacteristics(int characteristics) { in hasCharacteristics() method
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | TreeSetTest.java | 342 assertTrue(treeSet.spliterator().hasCharacteristics(Spliterator.ORDERED)); in test_spliterator() 345 assertTrue(treeSet.spliterator().hasCharacteristics(Spliterator.DISTINCT)); in test_spliterator()
|
D | LinkedHashSetTest.java | 346 assertTrue(hashSet.spliterator().hasCharacteristics(Spliterator.ORDERED)); in test_spliterator() 349 assertTrue(hashSet.spliterator().hasCharacteristics(Spliterator.DISTINCT)); in test_spliterator()
|
D | WeakHashMapTest.java | 545 assertTrue(keys.spliterator().hasCharacteristics(Spliterator.DISTINCT)); in test_spliterator_keySet() 609 assertTrue(values.spliterator().hasCharacteristics(Spliterator.DISTINCT)); in test_spliterator_entrySet()
|
D | HashSetTest.java | 276 assertTrue(hashSet.spliterator().hasCharacteristics(Spliterator.DISTINCT)); in test_spliterator()
|
D | LinkedHashMapTest.java | 851 assertTrue(keys.spliterator().hasCharacteristics(Spliterator.ORDERED)); in test_spliterator_keySet() 882 assertTrue(values.spliterator().hasCharacteristics(Spliterator.ORDERED)); in test_spliterator_valueSet() 916 assertTrue(entries.spliterator().hasCharacteristics(Spliterator.ORDERED)); in test_spliterator_entrySet()
|
D | HashMapTest.java | 848 assertTrue(keys.spliterator().hasCharacteristics(Spliterator.SIZED | Spliterator.DISTINCT)); in test_spliterator_keySet() 881 assertTrue(values.spliterator().hasCharacteristics(Spliterator.SIZED)); in test_spliterator_valueSet() 916 … assertTrue(values.spliterator().hasCharacteristics(Spliterator.SIZED | Spliterator.DISTINCT)); in test_spliterator_entrySet()
|