Home
last modified time | relevance | path

Searched refs:accumulate (Results 1 – 8 of 8) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DLongAccumulatorTest.java41 ai.accumulate(2); in testAccumulateAndGet()
43 ai.accumulate(-4); in testAccumulateAndGet()
45 ai.accumulate(4); in testAccumulateAndGet()
54 ai.accumulate(2); in testReset()
65 ai.accumulate(2); in testGetThenReset()
77 ai.accumulate(1); in testToString()
87 ai.accumulate(1); in testIntValue()
97 ai.accumulate(1); in testLongValue()
107 ai.accumulate(1); in testFloatValue()
117 ai.accumulate(1); in testDoubleValue()
[all …]
DDoubleAccumulatorTest.java41 ai.accumulate(2.0); in testAccumulateAndGet()
43 ai.accumulate(-4.0); in testAccumulateAndGet()
45 ai.accumulate(4.0); in testAccumulateAndGet()
54 ai.accumulate(2.0); in testReset()
65 ai.accumulate(2.0); in testGetThenReset()
77 ai.accumulate(1.0); in testToString()
87 ai.accumulate(1.0); in testIntValue()
97 ai.accumulate(1.0); in testLongValue()
107 ai.accumulate(1.0); in testFloatValue()
117 ai.accumulate(1.0); in testDoubleValue()
[all …]
/libcore/json/src/test/java/libcore/org/json/
DJSONObjectTest.java513 object.accumulate("foo", Double.NaN); in testAccumulateValueChecking()
517 object.accumulate("foo", 1); in testAccumulateValueChecking()
519 object.accumulate("foo", Double.NaN); in testAccumulateValueChecking()
523 object.accumulate("foo", 2); in testAccumulateValueChecking()
525 object.accumulate("foo", Double.NaN); in testAccumulateValueChecking()
783 object.accumulate("foo", 6); in testAccumulateMutatesInPlace()
786 object.accumulate("foo", 7); in testAccumulateMutatesInPlace()
794 object.accumulate("foo", 5); in testAccumulateExistingArray()
800 object.accumulate("foo", 5); in testAccumulatePutArray()
802 object.accumulate("foo", new JSONArray()); in testAccumulatePutArray()
[all …]
DSelfUseTest.java135 object.accumulate("foo", "bar"); in testObjectAccumulate()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DStreamLinkTest.java103 double[] expected = data.stream().map(e -> accumulate(e, n)).toArray(); in testDoubleManyStreams()
111 private double accumulate(double e, int n) { in accumulate() method
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DLongAccumulator.java104 public void accumulate(long x) { in accumulate() method in LongAccumulator
DDoubleAccumulator.java102 public void accumulate(double x) { in accumulate() method in DoubleAccumulator
/libcore/json/src/main/java/org/json/
DJSONObject.java308 …@NonNull public JSONObject accumulate(@NonNull String name, @Nullable Object value) throws JSONExc… in accumulate() method in JSONObject