/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 | 129 assertTrue(sp.hasCharacteristics(Spliterator.ORDERED)); in testSpliteratorObjectArray() 158 assertTrue(sp.hasCharacteristics(Spliterator.ORDERED)); in testSpliteratorObjectArrayRange() 472 assertTrue(sp.hasCharacteristics(Spliterator.ORDERED)); in testSpliterator_Collection() 501 assertTrue(sp.hasCharacteristics(Spliterator.ORDERED)); in testSpliterator_sizedIterator() 520 assertTrue(sp.hasCharacteristics(Spliterator.ORDERED)); in testSpliterator_unsizedIterator()
|
D | AbstractListTest.java | 144 assertTrue(spliteratorSupplier.get().hasCharacteristics( in checkSpliteratorOfRandomAccessList()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | IntPrimitiveOpsTests.java | 98 .hasCharacteristics(Spliterator.SORTED | Spliterator.DISTINCT)); in testFlags() 100 .hasCharacteristics(Spliterator.SORTED)); in testFlags() 102 .hasCharacteristics(Spliterator.DISTINCT)); in testFlags() 105 .hasCharacteristics(Spliterator.SORTED | Spliterator.DISTINCT)); in testFlags() 107 .hasCharacteristics(Spliterator.SORTED)); in testFlags() 109 .hasCharacteristics(Spliterator.DISTINCT)); in testFlags() 112 .hasCharacteristics(Spliterator.SORTED | Spliterator.DISTINCT)); in testFlags() 114 .hasCharacteristics(Spliterator.SORTED)); in testFlags() 116 .hasCharacteristics(Spliterator.DISTINCT)); in testFlags()
|
D | LongPrimitiveOpsTests.java | 98 .hasCharacteristics(Spliterator.SORTED | Spliterator.DISTINCT)); in testFlags() 100 .hasCharacteristics(Spliterator.SORTED)); in testFlags() 102 .hasCharacteristics(Spliterator.DISTINCT)); in testFlags() 105 .hasCharacteristics(Spliterator.SORTED)); in testFlags() 107 .hasCharacteristics(Spliterator.DISTINCT)); in testFlags() 109 .hasCharacteristics(Spliterator.SORTED)); in testFlags()
|
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 | SliceOpTest.java | 203 assert s.hasCharacteristics(Spliterator.ORDERED); in testSkipLimitOpsWithNonSplittingSpliterator() 361 assertTrue(parSpliterator.hasCharacteristics(Spliterator.SIZED)); 362 assertTrue(parSpliterator.hasCharacteristics(Spliterator.SUBSIZED)); 368 assertTrue(parSpliterator.hasCharacteristics(Spliterator.SIZED)); 369 assertTrue(parSpliterator.hasCharacteristics(Spliterator.SUBSIZED)); 371 assertTrue(prefix.hasCharacteristics(Spliterator.SIZED)); 372 assertTrue(prefix.hasCharacteristics(Spliterator.SUBSIZED)); 376 assertTrue(seqSpliterator.hasCharacteristics(Spliterator.SIZED)); 377 assertTrue(seqSpliterator.hasCharacteristics(Spliterator.SUBSIZED));
|
D | DoublePrimitiveOpsTests.java | 55 .hasCharacteristics(Spliterator.SORTED)); in testFlags() 57 .hasCharacteristics(Spliterator.SORTED)); in testFlags()
|
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 | 134 assertTrue(s.hasCharacteristics(Spliterator.SORTED)); in testSorted() 137 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 …]
|
/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 …]
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/ |
D | SpliteratorTestHelper.java | 252 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testForEach() 285 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testTryAdvance() 315 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testMixedTryAdvanceForEach() 346 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testMixedTraverseAndSplit() 413 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testSplitOnce() 440 boolean isOrdered = spliterator.hasCharacteristics(Spliterator.ORDERED); in testSplitSixDeep() 524 boolean isOrdered = s.hasCharacteristics(Spliterator.ORDERED); in testSplitUntilNull() 624 assertTrue(s.hasCharacteristics(Spliterator.SUBSIZED), 631 if (s.hasCharacteristics(Spliterator.SUBSIZED)) { 632 assertTrue(s.hasCharacteristics(Spliterator.SIZED)); [all …]
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | SliceOps.java | 78 assert s.hasCharacteristics(Spliterator.SUBSIZED); in sliceSpliterator() 132 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { in makeRef() 162 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { in makeRef() 258 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { 280 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { 376 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { 398 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { 494 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { 516 if (size > 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) {
|
D | Nodes.java | 329 if (size >= 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { in collect() 366 if (size >= 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { in collectInt() 404 if (size >= 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { in collectLong() 442 if (size >= 0 && spliterator.hasCharacteristics(Spliterator.SUBSIZED)) { in collectDouble() 1845 assert spliterator.hasCharacteristics(Spliterator.SUBSIZED); 1856 assert spliterator.hasCharacteristics(Spliterator.SUBSIZED);
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | LinkedBlockingQueue8Test.java | 70 assertTrue(s.hasCharacteristics(required)); in testSpliterator_characteristics()
|
D | LinkedBlockingDeque8Test.java | 70 assertTrue(s.hasCharacteristics(required)); in testSpliterator_characteristics()
|
D | Collection8Test.java | 162 if (c.spliterator().hasCharacteristics(Spliterator.SIZED)) 301 c.spliterator().hasCharacteristics(Spliterator.ORDERED); 409 if (s.hasCharacteristics(Spliterator.CONCURRENT)) { 443 if (! (s.hasCharacteristics(Spliterator.CONCURRENT) || 444 s.hasCharacteristics(Spliterator.IMMUTABLE))) 476 if (s.hasCharacteristics(Spliterator.CONCURRENT)) { 521 c.spliterator().hasCharacteristics(Spliterator.ORDERED); 881 .hasCharacteristics(Spliterator.IMMUTABLE)) 912 boolean reportsSorted = s.hasCharacteristics(Spliterator.SORTED);
|
D | ArrayDeque8Test.java | 72 assertTrue(s.hasCharacteristics(required)); in testSpliterator_characteristics()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Spliterators.java | 1018 if (hasCharacteristics(Spliterator.SORTED)) in getComparator() 1101 if (hasCharacteristics(Spliterator.SORTED)) in getComparator() 1184 if (hasCharacteristics(Spliterator.SORTED)) in getComparator() 1267 if (hasCharacteristics(Spliterator.SORTED)) in getComparator() 1876 if (hasCharacteristics(Spliterator.SORTED)) in getComparator() 1975 if (hasCharacteristics(Spliterator.SORTED)) in getComparator() 2069 if (hasCharacteristics(Spliterator.SORTED)) in getComparator() 2163 if (hasCharacteristics(Spliterator.SORTED)) in getComparator()
|
D | Spliterator.java | 452 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()
|