/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | SortedOpTest.java | 64 .sorted(); in testRefStreamTooLarge() 73 .sorted(); in testIntStreamTooLarge() 82 .sorted(); in testLongStreamTooLarge() 91 .sorted(); in testDoubleStreamTooLarge() 123 assertCountSum(countTo(0).stream().sorted(), 0, 0); in testSorted() 124 assertCountSum(countTo(10).stream().sorted(), 10, 55); in testSorted() 125 assertCountSum(countTo(10).stream().sorted(cInteger.reversed()), 10, 55); in testSorted() 128 assertSorted(to10.stream().sorted(cInteger.reversed()).iterator(), cInteger.reversed()); in testSorted() 131 assertSorted(to10.stream().sorted().iterator()); in testSorted() 133 Spliterator<Integer> s = to10.stream().sorted().spliterator(); in testSorted() [all …]
|
D | DoublePrimitiveOpsTests.java | 80 double[] array = Arrays.stream(content).sorted().toArray(); in testSort() 85 double[] array = Arrays.stream(content).parallel().sorted().toArray(); in testSort() 94 … assertEquals(LongStream.range(0, 10).asDoubleStream().sorted().distinct().toArray(), range); in testSortDistinct() 95 …assertEquals(LongStream.range(0, 10).asDoubleStream().parallel().sorted().distinct().toArray(), ra… in testSortDistinct() 101 assertEquals(DoubleStream.of(data).sorted().distinct().toArray(), expected); in testSortDistinct() 102 assertEquals(DoubleStream.of(data).parallel().sorted().distinct().toArray(), expected); in testSortDistinct() 114 double[] array = Arrays.stream(content).sorted().sorted().toArray(); in testSortSort() 119 double[] array = Arrays.stream(content).parallel().sorted().sorted().toArray(); in testSortSort()
|
D | IntPrimitiveOpsTests.java | 139 int[] array = Arrays.stream(content).sorted().toArray(); in testSort() 144 int[] array = Arrays.stream(content).parallel().sorted().toArray(); in testSort() 153 assertEquals(IntStream.range(0, 10).sorted().distinct().toArray(), range); in testSortDistinct() 154 assertEquals(IntStream.range(0, 10).parallel().sorted().distinct().toArray(), range); in testSortDistinct() 158 assertEquals(IntStream.of(data).sorted().distinct().toArray(), expected); in testSortDistinct() 159 assertEquals(IntStream.of(data).parallel().sorted().distinct().toArray(), expected); in testSortDistinct() 167 assertEquals(IntStream.of(input).sorted().asLongStream().sorted().distinct().toArray(), in testSortDistinct() 173 assertEquals(IntStream.of(input).sorted().distinct().asDoubleStream() in testSortDistinct() 174 .sorted().distinct().toArray(), expectedDoubles); in testSortDistinct() 186 int[] array = Arrays.stream(content).sorted().sorted().toArray(); in testSortSort() [all …]
|
D | LongPrimitiveOpsTests.java | 132 long[] array = Arrays.stream(content).sorted().toArray(); in testSort() 137 long[] array = Arrays.stream(content).parallel().sorted().toArray(); in testSort() 146 assertEquals(LongStream.range(0, 10).sorted().distinct().toArray(), range); in testSortDistinct() 147 assertEquals(LongStream.range(0, 10).parallel().sorted().distinct().toArray(), range); in testSortDistinct() 151 assertEquals(LongStream.of(data).sorted().distinct().toArray(), expected); in testSortDistinct() 152 assertEquals(LongStream.of(data).parallel().sorted().distinct().toArray(), expected); in testSortDistinct() 161 assertEquals(LongStream.of(input).sorted().distinct().asDoubleStream() in testSortDistinct() 162 .sorted().distinct().toArray(), expectedDoubles); in testSortDistinct() 174 long[] array = Arrays.stream(content).sorted().sorted().toArray(); in testSortSort() 179 long[] array = Arrays.stream(content).parallel().sorted().sorted().toArray(); in testSortSort()
|
D | ToArrayOpTest.java | 80 Object[] objects = exerciseTerminalOps(data, s -> s.sorted(), s -> s.toArray()); in testOpsWithSorted() 107 s.sorted() in testAsArrayWithType() 109 .map((Double d) -> Integer.valueOf(d.intValue())).sorted(), in testAsArrayWithType() 117 s -> s.sorted(), 118 s -> s.sorted() 150 s -> s.sorted() 235 int[] ints = exerciseTerminalOps(data, s -> s.sorted(), (IntStream s) -> s.toArray()); 262 s -> s.sorted(), 263 s -> s.sorted() 277 s -> s.sorted() [all …]
|
D | SequentialOpTest.java | 112 (UnaryOperator<Stream<Integer>>) s -> s.sorted(Comparator.naturalOrder()), in testMixedSeqPar() 113 … (UnaryOperator<Stream<Integer>>) s -> s.map(id).sorted(Comparator.naturalOrder()).map(id), in testMixedSeqPar() 114 …(UnaryOperator<Stream<Integer>>) s -> s.filter(LambdaTestHelpers.pEven).sorted(Comparator.naturalO… in testMixedSeqPar()
|
D | DistinctOpTest.java | 158 .stream(s -> s.distinct().sorted(), in testDistinctSorted() 168 .stream(s -> s.sorted().distinct(), in testSortedDistinct()
|
D | IntUniqOpTest.java | 69 stream(s -> s.sorted().distinct().boxed()). in testOpSorted()
|
D | StreamSpliteratorTest.java | 335 s -> s.sorted()); in streamFunctions() 428 s -> s.sorted()); in intStreamFunctions() 521 s -> s.sorted()); in longStreamFunctions() 614 s -> s.sorted()); in doubleStreamFunctions()
|
/libcore/ojluni/src/test/java/util/PriorityQueue/ |
D | PriorityQueueSort.java | 63 List<Integer> sorted = new ArrayList<>(n); in main() local 65 sorted.add(new Integer(i)); in main() 66 List<Integer> shuffled = new ArrayList<>(sorted); in main() 76 if (!recons.equals(sorted)) in main() 83 if (!recons.equals(sorted)) in main() 95 for (Iterator<Integer> i = sorted.iterator(); i.hasNext(); ) in main() 99 if (!recons.equals(sorted)) in main()
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | NullComparator.java | 42 List sorted = new ArrayList(list); in main() local 47 if (!Arrays.asList(a).equals(sorted)) in main() 51 if (!Arrays.asList(a).equals(sorted)) in main() 58 if (!tmp.equals(sorted)) in main()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | DefaultMethodStreams.java | 237 public Stream<T> sorted() { in sorted() method in DefaultMethodStreams.DefaultMethodRefStream 238 return s.sorted(); in sorted() 242 public Stream<T> sorted(Comparator<? super T> comparator) { in sorted() method in DefaultMethodStreams.DefaultMethodRefStream 243 return s.sorted(comparator); in sorted() 433 public IntStream sorted() { in sorted() method in DefaultMethodStreams.DefaultMethodIntStream 434 return s.sorted(); in sorted() 644 public LongStream sorted() { in sorted() method in DefaultMethodStreams.DefaultMethodLongStream 645 return s.sorted(); in sorted() 837 public DoubleStream sorted() { in sorted() method in DefaultMethodStreams.DefaultMethodDoubleStream 838 return s.sorted(); in sorted()
|
/libcore/tools/expected_upstream/ |
D | ojluni_versions_report.py | 50 top_tree = {k: top_tree[k] for k in sorted(top_tree)}
|
/libcore/ojluni/src/test/java/util/Random/ |
D | RandomCanaryPi.java | 60 .sorted(Comparator.comparing(RandomGeneratorFactory::name)) in main()
|
/libcore/tools/upstream/ |
D | upstream-diff | 129 repositories = ['ojluni'] + sorted(
|
/libcore/tools/testmapping/ |
D | save_logs.py | 69 return sorted(sources, key=os.path.getmtime, reverse=True)
|
D | gen_smoke_tests.py | 312 for (test, time) in sorted( 422 return sorted(exclusions)
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | Stream.java | 592 Stream<T> sorted(); 609 Stream<T> sorted(Comparator<? super T> comparator);
|
D | DoubleStream.java | 225 DoubleStream sorted(); in sorted() method
|
/libcore/tools/docs/crypto/ |
D | update_crypto_support.py | 84 return sorted(seq, key=lambda x: x['name'])
|
D | format_supported_algorithm_table.py | 33 return sorted(seq, key=lambda x: x['name'])
|
/libcore/ojluni/annotations/flagged_api/java/util/stream/ |
D | DoubleStream.annotated.java | 48 public java.util.stream.DoubleStream sorted(); in sorted() method
|
D | IntStream.annotated.java | 48 public java.util.stream.IntStream sorted(); in sorted() method
|
D | LongStream.annotated.java | 48 public java.util.stream.LongStream sorted(); in sorted() method
|
/libcore/tools/openjdk-analyzer/src/libcore/tools/analyzer/openjdk/ |
D | Main.java | 461 .sorted() in printInsn() 472 .sorted() in printInsn() 651 ).sorted().forEach(writer::println); in run()
|