/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | IntPrimitiveOpsTests.java | 42 long sum = IntStream.range(1, 10).filter(i -> i % 2 == 0).sum(); in testSum() local 47 long sum = IntStream.range(1, 10).filter(i -> i % 2 == 0).map(i -> i * 2).sum(); in testMap() local 52 long sum = IntStream.range(1, 10).parallel().filter(i -> i % 2 == 0).sum(); in testParSum() local 59 …long sum = IntStream.range(1, 10).filter(i -> i % 2 == 0).peek(i -> { teeSum[0] = teeSum[0] + i; }… in testTee() local 65 int[] sum = new int[1]; in testForEach() local 79 int sum = l.stream().reduce(0, (a, b) -> a + b); in testBox() local 84 long sum = Arrays.asList(1, 2, 3, 4, 5).stream().mapToInt(i -> (int) i).sum(); in testUnBox() local
|
D | LongPrimitiveOpsTests.java | 42 long sum = LongStream.range(1, 10).filter(i -> i % 2 == 0).sum(); in testSum() local 47 long sum = LongStream.range(1, 10).filter(i -> i % 2 == 0).map(i -> i * 2).sum(); in testMap() local 52 long sum = LongStream.range(1, 10).parallel().filter(i -> i % 2 == 0).sum(); in testParSum() local 59 …long sum = LongStream.range(1, 10).filter(i -> i % 2 == 0).peek(i -> { teeSum[0] = teeSum[0] + i; … in testTee() local 65 long[] sum = new long[1]; in testForEach() local 79 long sum = l.stream().reduce(0L, (a, b) -> a + b); in testBox() local 84 long sum = Arrays.asList(1L, 2L, 3L, 4L, 5L).stream().mapToLong(i -> (long) i).sum(); in testUnBox() local
|
D | ForEachOpTest.java | 68 AtomicInteger sum = new AtomicInteger(0); in testForEach() local
|
D | DoublePrimitiveOpsTests.java | 41 …double sum = Arrays.asList(1.0, 2.0, 3.0, 4.0, 5.0).stream().mapToDouble(i -> i).reduce(0.0, Doubl… in testUnBox() local
|
/libcore/benchmarks/src/benchmarks/ |
D | ArrayIterationBenchmark.java | 29 int sum = 0; in timeArrayIteration() local 37 int sum = 0; in timeArrayIterationCached() local 48 int sum = 0; in timeArrayIterationForEach() local
|
D | ArrayListIterationBenchmark.java | 31 int sum = 0; in timeArrayListIterationIndexed() local 41 int sum = 0; in timeArrayListIterationForEach() local
|
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
D | DoubleAdder.java | 117 public double sum() { in sum() method in DoubleAdder 119 double sum = Double.longBitsToDouble(base); in sum() local 157 double sum = Double.longBitsToDouble(base); in sumThenReset() local
|
D | LongAdder.java | 119 public long sum() { in sum() method in LongAdder 121 long sum = base; in sum() local 159 long sum = base; in sumThenReset() local
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | MutableIntBenchmark.java | 39 int sum = 0; in ARRAY() local 60 int sum = 0; in ATOMIC() local
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | LambdaTestHelpers.java | 185 public static void assertCountSum(Stream<? super Integer> it, int count, int sum) { in assertCountSum() 186 assertCountSum(it.iterator(), count, sum); in assertCountSum() local 189 public static void assertCountSum(Iterable<? super Integer> it, int count, int sum) { in assertCountSum() 190 assertCountSum(it.iterator(), count, sum); in assertCountSum() local 193 public static void assertCountSum(Iterator<? super Integer> it, int count, int sum) { in assertCountSum()
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | LambdaTestHelpers.java | 184 public static void assertCountSum(Stream<? super Integer> it, int count, int sum) { in assertCountSum() 185 assertCountSum(it.iterator(), count, sum); in assertCountSum() local 188 public static void assertCountSum(Iterable<? super Integer> it, int count, int sum) { in assertCountSum() 189 assertCountSum(it.iterator(), count, sum); in assertCountSum() local 192 public static void assertCountSum(Iterator<? super Integer> it, int count, int sum) { in assertCountSum()
|
/libcore/ojluni/src/test/java/lang/StrictMath/ |
D | ExactArithTests.java | 102 int sum = StrictMath.addExact(x, y); in testIntegerExact() local 209 long sum = StrictMath.addExact(x, y); in testLongExact() local
|
/libcore/ojluni/src/main/java/java/util/ |
D | IntSummaryStatistics.java | 67 private long sum; field in IntSummaryStatistics
|
D | LongSummaryStatistics.java | 68 private long sum; field in LongSummaryStatistics
|
D | ArrayPrefixHelpers.java | 197 T sum; in compute() local 349 long sum; in compute() local 499 double sum; in compute() local 649 int sum; in compute() local
|
/libcore/support/src/test/java/tests/util/ |
D | SummaryStatistics.java | 24 private double sum; field in SummaryStatistics
|
/libcore/ojluni/src/test/java/lang/Math/ |
D | ExactArithTests.java | 78 int sum = Math.addExact(x, y); in testIntegerExact() local 234 long sum = Math.addExact(x, y); in testLongExact() local
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | ArraysTest.java | 583 int sum = Arrays.stream(sourceArray) in streamInt() local 670 long sum = Arrays.stream(sourceArray) in streamLong() local 757 double sum = Arrays.stream(sourceArray) in streamDouble() local 844 int sum = Arrays.stream(sourceArray) in streamObject() local
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | DNSName.java | 236 int sum = 1; in subtreeDepth() local
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | DoubleAdderTest.java | 147 double sum = a.sum(); in testAddAndSumMT() local
|
D | LongAdderTest.java | 170 long sum = a.sum(); in testAddAndSumMT() local
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | DoubleAdderTest.java | 170 double sum = a.sum(); in testAddAndSumMT() local
|
D | LongAdderTest.java | 193 long sum = a.sum(); in testAddAndSumMT() local
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | OldBigIntegerTest.java | 318 BigInteger sum = aZillion; in test_addLjava_math_BigInteger() local
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | Double.annotated.java | 87 public static double sum(double a, double b) { throw new RuntimeException("Stub!"); } in sum() method in Double
|