Home
last modified time | relevance | path

Searched defs:sum (Results 1 – 25 of 49) sorted by relevance

12

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DIntPrimitiveOpsTests.java42 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
DLongPrimitiveOpsTests.java42 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
DForEachOpTest.java68 AtomicInteger sum = new AtomicInteger(0); in testForEach() local
DDoublePrimitiveOpsTests.java41 …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/
DArrayIterationBenchmark.java29 int sum = 0; in timeArrayIteration() local
37 int sum = 0; in timeArrayIterationCached() local
48 int sum = 0; in timeArrayIterationForEach() local
DArrayListIterationBenchmark.java31 int sum = 0; in timeArrayListIterationIndexed() local
41 int sum = 0; in timeArrayListIterationForEach() local
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DDoubleAdder.java117 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
DLongAdder.java119 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/
DMutableIntBenchmark.java39 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/
DLambdaTestHelpers.java185 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/
DLambdaTestHelpers.java184 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/
DExactArithTests.java102 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/
DIntSummaryStatistics.java67 private long sum; field in IntSummaryStatistics
DLongSummaryStatistics.java68 private long sum; field in LongSummaryStatistics
DArrayPrefixHelpers.java197 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/
DSummaryStatistics.java24 private double sum; field in SummaryStatistics
/libcore/ojluni/src/test/java/lang/Math/
DExactArithTests.java78 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/
DArraysTest.java583 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/
DDNSName.java236 int sum = 1; in subtreeDepth() local
/libcore/jsr166-tests/src/test/java/jsr166/
DDoubleAdderTest.java147 double sum = a.sum(); in testAddAndSumMT() local
DLongAdderTest.java170 long sum = a.sum(); in testAddAndSumMT() local
/libcore/ojluni/src/test/java/util/concurrent/tck/
DDoubleAdderTest.java170 double sum = a.sum(); in testAddAndSumMT() local
DLongAdderTest.java193 long sum = a.sum(); in testAddAndSumMT() local
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DOldBigIntegerTest.java318 BigInteger sum = aZillion; in test_addLjava_math_BigInteger() local
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DDouble.annotated.java87 public static double sum(double a, double b) { throw new RuntimeException("Stub!"); } in sum() method in Double

12