Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 25 of 274) sorted by relevance

1234567891011

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DConcatTest.java24 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 …]
DPrimitiveSumTest.java23 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 …]
DStreamLinkTest.java23 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 …]
DCountTest.java30 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 …]
DTeeOpTest.java23 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 …]
DMinMaxTest.java23 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 …]
DFindFirstOpTest.java23 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 …]
DDistinctOpTest.java23 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 …]
DGroupByOpTest.java23 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 …]
DFindAnyOpTest.java23 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 …]
DExplodeOpTest.java23 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 …]
DReduceByOpTest.java23 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 …]
DFilterOpTest.java23 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 …]
DSummaryStatisticsTest.java23 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 …]
DIntUniqOpTest.java23 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 …]
DReduceTest.java23 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 …]
DStreamCloseTest.java23 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 …]
DPrimitiveAverageOpTest.java23 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.*;
DMapOpTest.java23 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 …]
DStreamBuilderTest.java23 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 …]
DInfiniteStreamWithLimitOpTest.java23 package org.openjdk.tests.java.util.stream;
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;
31 import org.openjdk.testlib.java.util.stream.DoubleStreamTestScenario;
32 import org.openjdk.testlib.java.util.stream.IntStreamTestScenario;
33 import org.openjdk.testlib.java.util.stream.LongStreamTestScenario;
34 import org.openjdk.testlib.java.util.stream.LambdaTestHelpers;
35 import org.openjdk.testlib.java.util.stream.StreamTestScenario;
45 import java.util.stream.DoubleStream;
[all …]
DIntReduceTest.java23 package org.openjdk.tests.java.util.stream;
25 import org.openjdk.testlib.java.util.stream.IntStreamTestDataProvider;
26 import org.openjdk.testlib.java.util.stream.OpTestCase;
27 import org.openjdk.testlib.java.util.stream.TestData;
29 import java.util.stream.IntStream;
35 import static org.openjdk.testlib.java.util.stream.LambdaTestHelpers.*;
41 assertEquals(55, Arrays.stream(a).reduce(irPlus).getAsInt()); in testReduce()
42 assertEquals(55, Arrays.stream(a).reduce(0, irPlus)); in testReduce()
43 assertEquals(10, Arrays.stream(a).reduce(irMax).getAsInt()); in testReduce()
44 assertEquals(1, Arrays.stream(a).reduce(irMin).getAsInt()); in testReduce()
[all …]
/libcore/luni/src/main/native/
DZipUtilities.cpp25 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/
DStreamFlagsTest.java23 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/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
DBrokenInputStream.java29 private InputStream stream; field in BrokenInputStream
33 public BrokenInputStream(InputStream stream, int offset) { in BrokenInputStream() argument
36 this.stream = stream; in BrokenInputStream()
47 return stream.read(); in read()
52 stream.close(); in close()

1234567891011