/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | ConcatTest.java | 24 package org.openjdk.tests.java.util.stream; 39 import java.util.stream.DoubleStream; 40 import java.util.stream.IntStream; 41 import java.util.stream.LongStream; 42 import java.util.stream.Stream; 44 import static org.openjdk.testlib.java.util.stream.LambdaTestHelpers.*; 109 Stream<Integer> s1s = c1.stream(); in checkPrerequisites() 110 Stream<Integer> s2s = c2.stream(); in checkPrerequisites() 156 expected.stream().mapToInt(Integer::intValue).spliterator()); in assertIntConcat() 164 expected.stream().mapToLong(Integer::longValue).spliterator()); in assertLongConcat() [all …]
|
D | PrimitiveSumTest.java | 23 package org.openjdk.tests.java.util.stream; 25 import org.openjdk.testlib.java.util.stream.DoubleStreamTestDataProvider; 26 import org.openjdk.testlib.java.util.stream.IntStreamTestDataProvider; 27 import org.openjdk.testlib.java.util.stream.LambdaTestHelpers; 28 import org.openjdk.testlib.java.util.stream.LongStreamTestDataProvider; 29 import org.openjdk.testlib.java.util.stream.OpTestCase; 30 import org.openjdk.testlib.java.util.stream.StreamTestDataProvider; 31 import org.openjdk.testlib.java.util.stream.TestData; 33 import java.util.stream.BaseStream; 34 import java.util.stream.Stream; [all …]
|
D | StreamLinkTest.java | 23 package org.openjdk.tests.java.util.stream; 25 import org.openjdk.testlib.java.util.stream.DoubleStreamTestDataProvider; 26 import org.openjdk.testlib.java.util.stream.IntStreamTestDataProvider; 27 import org.openjdk.testlib.java.util.stream.LambdaTestHelpers; 28 import org.openjdk.testlib.java.util.stream.LongStreamTestDataProvider; 29 import org.openjdk.testlib.java.util.stream.OpTestCase; 30 import org.openjdk.testlib.java.util.stream.StreamTestDataProvider; 31 import org.openjdk.testlib.java.util.stream.TestData; 33 import java.util.stream.BaseStream; 34 import java.util.stream.Collectors; [all …]
|
D | CountTest.java | 30 package org.openjdk.tests.java.util.stream; 32 import org.openjdk.testlib.java.util.stream.DoubleStreamTestDataProvider; 33 import org.openjdk.testlib.java.util.stream.IntStreamTestDataProvider; 34 import org.openjdk.testlib.java.util.stream.LambdaTestHelpers; 35 import org.openjdk.testlib.java.util.stream.LongStreamTestDataProvider; 36 import org.openjdk.testlib.java.util.stream.OpTestCase; 37 import org.openjdk.testlib.java.util.stream.StreamTestDataProvider; 38 import org.openjdk.testlib.java.util.stream.TestData; 41 import java.util.stream.DoubleStream; 42 import java.util.stream.IntStream; [all …]
|
D | TeeOpTest.java | 23 package org.openjdk.tests.java.util.stream; 25 import org.openjdk.testlib.java.util.stream.DoubleStreamTestDataProvider; 26 import org.openjdk.testlib.java.util.stream.IntStreamTestDataProvider; 27 import org.openjdk.testlib.java.util.stream.LambdaTestHelpers; 28 import org.openjdk.testlib.java.util.stream.LongStreamTestDataProvider; 29 import org.openjdk.testlib.java.util.stream.OpTestCase; 30 import org.openjdk.testlib.java.util.stream.StreamTestDataProvider; 31 import org.openjdk.testlib.java.util.stream.TestData; 37 import java.util.stream.BaseStream; 38 import java.util.stream.Stream; [all …]
|
D | MinMaxTest.java | 23 package org.openjdk.tests.java.util.stream; 25 import org.openjdk.testlib.java.util.stream.DoubleStreamTestDataProvider; 26 import org.openjdk.testlib.java.util.stream.IntStreamTestDataProvider; 27 import org.openjdk.testlib.java.util.stream.LambdaTestHelpers; 28 import org.openjdk.testlib.java.util.stream.LongStreamTestDataProvider; 29 import org.openjdk.testlib.java.util.stream.OpTestCase; 30 import org.openjdk.testlib.java.util.stream.StreamTestDataProvider; 31 import org.openjdk.testlib.java.util.stream.TestData; 37 import java.util.stream.BaseStream; 38 import java.util.stream.Stream; [all …]
|
D | FindFirstOpTest.java | 23 package org.openjdk.tests.java.util.stream; 25 import org.openjdk.testlib.java.util.stream.*; 28 import java.util.stream.BaseStream; 29 import java.util.stream.Stream; 30 import java.util.stream.IntStream; 31 import java.util.stream.LongStream; 32 import java.util.stream.DoubleStream; 38 import static org.openjdk.testlib.java.util.stream.LambdaTestHelpers.*; 48 assertFalse(Collections.emptySet().stream().findFirst().isPresent(), "no result"); in testFindFirst() 49 assertFalse(countTo(10).stream().filter(x -> x > 10).findFirst().isPresent(), "no result"); in testFindFirst() [all …]
|
D | MapMultiOpTest.java | 29 package org.openjdk.tests.java.util.stream; 34 import org.openjdk.testlib.java.util.stream.DefaultMethodStreams; 35 import org.openjdk.testlib.java.util.stream.OpTestCase; 36 import org.openjdk.testlib.java.util.stream.StreamTestDataProvider; 37 import org.openjdk.testlib.java.util.stream.TestData; 44 import java.util.stream.IntStream; 45 import java.util.stream.Stream; 47 import static org.openjdk.testlib.java.util.stream.DefaultMethodStreams.delegateTo; 48 import static org.openjdk.testlib.java.util.stream.LambdaTestHelpers.LONG_STRING; 49 import static org.openjdk.testlib.java.util.stream.LambdaTestHelpers.assertConcat; [all …]
|
D | DistinctOpTest.java | 23 package org.openjdk.tests.java.util.stream; 28 import org.openjdk.testlib.java.util.stream.CollectorOps; 29 import org.openjdk.testlib.java.util.stream.OpTestCase; 30 import org.openjdk.testlib.java.util.stream.StreamTestDataProvider; 31 import org.openjdk.testlib.java.util.stream.TestData; 41 import java.util.stream.Collectors; 42 import java.util.stream.DoubleStream; 43 import java.util.stream.IntStream; 44 import java.util.stream.LongStream; 45 import java.util.stream.Stream; [all …]
|
D | GroupByOpTest.java | 23 package org.openjdk.tests.java.util.stream; 25 import org.openjdk.testlib.java.util.stream.LambdaTestHelpers; 26 import org.openjdk.testlib.java.util.stream.OpTestCase; 27 import org.openjdk.testlib.java.util.stream.StreamTestDataProvider; 28 import org.openjdk.testlib.java.util.stream.TestData; 39 import java.util.stream.Collector; 40 import java.util.stream.Collectors; 41 import java.util.stream.Stream; 45 import static org.openjdk.testlib.java.util.stream.LambdaTestHelpers.countTo; 46 import static org.openjdk.testlib.java.util.stream.LambdaTestHelpers.mDoubler; [all …]
|
D | FindAnyOpTest.java | 23 package org.openjdk.tests.java.util.stream; 25 import org.openjdk.testlib.java.util.stream.DoubleStreamTestDataProvider; 26 import org.openjdk.testlib.java.util.stream.IntStreamTestDataProvider; 27 import org.openjdk.testlib.java.util.stream.LambdaTestHelpers; 28 import org.openjdk.testlib.java.util.stream.LongStreamTestDataProvider; 29 import org.openjdk.testlib.java.util.stream.OpTestCase; 30 import org.openjdk.testlib.java.util.stream.StreamTestDataProvider; 31 import org.openjdk.testlib.java.util.stream.TestData; 36 import java.util.stream.BaseStream; 37 import java.util.stream.Stream; [all …]
|
D | ExplodeOpTest.java | 23 package org.openjdk.tests.java.util.stream; 25 import org.openjdk.testlib.java.util.stream.DoubleStreamTestDataProvider; 26 import org.openjdk.testlib.java.util.stream.IntStreamTestDataProvider; 27 import org.openjdk.testlib.java.util.stream.LambdaTestHelpers; 28 import org.openjdk.testlib.java.util.stream.LongStreamTestDataProvider; 29 import org.openjdk.testlib.java.util.stream.OpTestCase; 30 import org.openjdk.testlib.java.util.stream.StreamTestDataProvider; 31 import org.openjdk.testlib.java.util.stream.TestData; 39 import java.util.stream.BaseStream; 40 import java.util.stream.Stream; [all …]
|
D | FilterOpTest.java | 23 package org.openjdk.tests.java.util.stream; 25 import org.openjdk.testlib.java.util.stream.DoubleStreamTestDataProvider; 26 import org.openjdk.testlib.java.util.stream.IntStreamTestDataProvider; 27 import org.openjdk.testlib.java.util.stream.LongStreamTestDataProvider; 28 import org.openjdk.testlib.java.util.stream.OpTestCase; 29 import org.openjdk.testlib.java.util.stream.StreamTestDataProvider; 30 import org.openjdk.testlib.java.util.stream.TestData; 36 import java.util.stream.BaseStream; 37 import java.util.stream.Stream; 38 import java.util.stream.IntStream; [all …]
|
D | ReduceByOpTest.java | 23 package org.openjdk.tests.java.util.stream; 25 import org.openjdk.testlib.java.util.stream.LambdaTestHelpers; 26 import org.openjdk.testlib.java.util.stream.OpTestCase; 27 import org.openjdk.testlib.java.util.stream.StreamTestDataProvider; 28 import org.openjdk.testlib.java.util.stream.TestData; 31 import java.util.stream.Stream; 37 import static org.openjdk.testlib.java.util.stream.LambdaTestHelpers.*; 38 import static java.util.stream.Collectors.groupingBy; 39 import static java.util.stream.Collectors.reducing; 51 …Map<Boolean,List<Integer>> gbResult = data.stream().collect(groupingBy(LambdaTestHelpers.forPredic… in testOps() [all …]
|
D | SummaryStatisticsTest.java | 23 package org.openjdk.tests.java.util.stream; 25 import org.openjdk.testlib.java.util.stream.OpTestCase; 32 import java.util.stream.Collectors; 36 import static org.openjdk.testlib.java.util.stream.LambdaTestHelpers.countTo; 47 instances.add(countTo(1000).stream().collect(Collectors.summarizingInt(i -> i))); in testIntStatistics() 48 instances.add(countTo(1000).stream().mapToInt(i -> i).summaryStatistics()); in testIntStatistics() 54 assertEquals(stats.getSum(), countTo(1000).stream().mapToInt(i -> i).sum()); in testIntStatistics() 62 instances.add(countTo(1000).stream().collect(Collectors.summarizingLong(i -> i))); in testLongStatistics() 63 instances.add(countTo(1000).stream().mapToLong(i -> i).summaryStatistics()); in testLongStatistics() 69 assertEquals(stats.getSum(), (long) countTo(1000).stream().mapToInt(i -> i).sum()); in testLongStatistics() [all …]
|
D | ReduceTest.java | 23 package org.openjdk.tests.java.util.stream; 25 import org.openjdk.testlib.java.util.stream.OpTestCase; 26 import org.openjdk.testlib.java.util.stream.StreamTestDataProvider; 27 import org.openjdk.testlib.java.util.stream.TestData; 29 import java.util.stream.Stream; 35 import static org.openjdk.testlib.java.util.stream.LambdaTestHelpers.*; 47 assertEquals(55, (int) list.stream().reduce(rPlus).get()); in testReduce() 48 assertEquals(55, (int) list.stream().reduce(0, rPlus)); in testReduce() 49 assertEquals(10, (int) list.stream().reduce(rMax).get()); in testReduce() 50 assertEquals(1, (int) list.stream().reduce(rMin).get()); in testReduce() [all …]
|
D | StreamCloseTest.java | 23 package org.openjdk.tests.java.util.stream; 25 import org.openjdk.testlib.java.util.stream.OpTestCase; 28 import java.util.stream.Stream; 32 import static org.openjdk.testlib.java.util.stream.LambdaTestHelpers.countTo; 42 try (Stream<Integer> ints = countTo(100).stream()) { in testEmptyCloseHandler() 51 try (Stream<Integer> ints = countTo(100).stream()) { in testOneCloseHandler() 58 try (Stream<Integer> ints = countTo(100).stream().onClose(closer)) { in testOneCloseHandler() 64 try (Stream<Integer> ints = countTo(100).stream().filter(e -> true).onClose(closer)) { in testOneCloseHandler() 70 …try (Stream<Integer> ints = countTo(100).stream().filter(e -> true).onClose(closer).filter(e -> tr… in testOneCloseHandler() 81 try (Stream<Integer> ints = countTo(100).stream()) { in testTwoCloseHandlers() [all …]
|
D | IntUniqOpTest.java | 23 package org.openjdk.tests.java.util.stream; 25 import org.openjdk.testlib.java.util.stream.IntStreamTestDataProvider; 26 import org.openjdk.testlib.java.util.stream.LambdaTestHelpers; 27 import org.openjdk.testlib.java.util.stream.OpTestCase; 28 import org.openjdk.testlib.java.util.stream.StreamTestDataProvider; 29 import org.openjdk.testlib.java.util.stream.TestData; 32 import java.util.stream.Stream; 33 import java.util.stream.IntStream; 37 import static org.openjdk.testlib.java.util.stream.LambdaTestHelpers.assertCountSum; 38 import static org.openjdk.testlib.java.util.stream.LambdaTestHelpers.assertUnique; [all …]
|
D | IterateTest.java | 29 package org.openjdk.tests.java.util.stream; 31 import org.openjdk.testlib.java.util.stream.OpTestCase; 32 import org.openjdk.testlib.java.util.stream.TestData; 33 import org.openjdk.testlib.java.util.stream.TestData.Factory; 37 import java.util.stream.DoubleStream; 38 import java.util.stream.IntStream; 39 import java.util.stream.LongStream; 40 import java.util.stream.Stream; 42 import static org.openjdk.testlib.java.util.stream.ThrowableHelper.checkNPE; 90 withData(data).stream(s -> s).expectedResult(expected).exercise(); in testIterate()
|
D | MapOpTest.java | 23 package org.openjdk.tests.java.util.stream; 25 import org.openjdk.testlib.java.util.stream.DoubleStreamTestDataProvider; 26 import org.openjdk.testlib.java.util.stream.IntStreamTestDataProvider; 27 import org.openjdk.testlib.java.util.stream.LambdaTestHelpers; 28 import org.openjdk.testlib.java.util.stream.LongStreamTestDataProvider; 29 import org.openjdk.testlib.java.util.stream.OpTestCase; 30 import org.openjdk.testlib.java.util.stream.StreamTestDataProvider; 31 import org.openjdk.testlib.java.util.stream.TestData; 36 import java.util.stream.BaseStream; 37 import java.util.stream.Stream; [all …]
|
D | StreamBuilderTest.java | 23 package org.openjdk.tests.java.util.stream; 25 import org.openjdk.testlib.java.util.stream.LambdaTestHelpers; 26 import org.openjdk.testlib.java.util.stream.OpTestCase; 27 import org.openjdk.testlib.java.util.stream.StreamTestDataProvider; 28 import org.openjdk.testlib.java.util.stream.TestData; 37 import java.util.stream.DoubleStream; 38 import java.util.stream.IntStream; 39 import java.util.stream.LongStream; 40 import java.util.stream.Stream; 42 import static java.util.stream.Collectors.toList; [all …]
|
D | PrimitiveAverageOpTest.java | 23 package org.openjdk.tests.java.util.stream; 25 import org.openjdk.testlib.java.util.stream.OpTestCase; 26 import org.openjdk.testlib.java.util.stream.DoubleStreamTestDataProvider; 27 import org.openjdk.testlib.java.util.stream.IntStreamTestDataProvider; 28 import org.openjdk.testlib.java.util.stream.LongStreamTestDataProvider; 29 import org.openjdk.testlib.java.util.stream.StreamTestDataProvider; 30 import org.openjdk.testlib.java.util.stream.TestData; 32 import java.util.stream.*;
|
/libcore/luni/src/main/native/ |
D | ZipUtilities.cpp | 25 NativeZipStream* stream) { in throwExceptionForZlibError() argument 28 } else if (stream != NULL && stream->stream.msg != NULL) { in throwExceptionForZlibError() 29 jniThrowException(env, exceptionClassName, stream->stream.msg); in throwExceptionForZlibError() 37 stream.opaque = Z_NULL; in NativeZipStream() 38 stream.zalloc = Z_NULL; in NativeZipStream() 39 stream.zfree = Z_NULL; in NativeZipStream() 56 err = inflateSetDictionary(&stream, dictionary, len); in setDictionary() 58 err = deflateSetDictionary(&stream, dictionary, len); in setDictionary() 78 stream.next_in = reinterpret_cast<Bytef*>(&input[0]); in setInput() 79 stream.avail_in = len; in setInput()
|
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
D | StreamFlagsTest.java | 23 package java.util.stream; 28 import java.util.stream.Stream; 29 import java.util.stream.StreamOpFlag; 30 import java.util.stream.Streams; 32 import static java.util.stream.StreamOpFlag.*; 43 Stream<String> arrayList = new ArrayList<String>().stream(); 44 Stream<String> linkedList = new LinkedList<String>().stream(); 45 Stream<String> hashSet = new HashSet<String>().stream(); 46 Stream<String> treeSet = new TreeSet<String>().stream(); 47 Stream<String> linkedHashSet = new LinkedHashSet<String>().stream(); [all …]
|
/libcore/ojluni/src/test/java/lang/String/ |
D | Indent.java | 32 import java.util.stream.Collectors; 33 import java.util.stream.Stream; 67 Stream<String> stream = input.lines(); in testIndent() local 70 stream = stream.map(s -> spaces + s); in testIndent() 72 … stream = stream.map(s -> s.substring(Math.min(-adjust, indexOfNonWhitespace(s)))); in testIndent() 74 String expected = stream.collect(Collectors.joining("\n", "", "\n")); in testIndent()
|