Home
last modified time | relevance | path

Searched refs:average (Results 1 – 18 of 18) sorted by relevance

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DPrimitiveAverageOpTest.java40 exerciseTerminalOps(data, s -> s.average()); in testOps()
45 exerciseTerminalOps(data, s -> s.average()); in testOps()
54 exerciseTerminalOps(data, s -> s.average()); in testOps()
DTabulatorsTest.java314 s -> s.mapToInt(x -> x * 2).average().orElse(0));
316 s -> s.mapToLong(x -> x * 2).average().orElse(0));
318 s -> s.mapToDouble(x -> x * 2).average().orElse(0));
333 s -> s.mapToInt(x -> x * 2).average().orElse(0));
DCollectorsTest.java393 s -> s.mapToInt(x -> x * 2).average().orElse(0));
395 s -> s.mapToLong(x -> x * 2).average().orElse(0));
397 s -> s.mapToDouble(x -> x * 2).average().orElse(0));
412 s -> s.mapToInt(x -> x * 2).average().orElse(0));
797 …assertCollect(data, averaging, stream -> stream.mapToInt(Integer::intValue).average().orElse(Doubl…
/libcore/ojluni/src/test/java/util/stream/
DTestDoubleSumAverage.java56 return compareUlpDifference(0.0, ds.get().average().getAsDouble(), 0); in testZeroAverageOfNonEmptyStream()
91 ds.get().average().getAsDouble(), 3); in testForCompenstation()
138 failures += compareUlpDifference(expected, ds.get().average().getAsDouble(), 0); in testNonfiniteSum()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DDefaultMethodStreams.java503 public OptionalDouble average() { in average() method in DefaultMethodStreams.DefaultMethodIntStream
504 return s.average(); in average()
709 public OptionalDouble average() { in average() method in DefaultMethodStreams.DefaultMethodLongStream
710 return s.average(); in average()
907 public OptionalDouble average() { in average() method in DefaultMethodStreams.DefaultMethodDoubleStream
908 return s.average(); in average()
/libcore/ojluni/src/main/java/java/nio/charset/
DCharset-X-Coder.java.template142 private final float average$ItypesPerOtype$;
171 * @param average$ItypesPerOtype$
189 float average$ItypesPerOtype$,
211 if (!(average$ItypesPerOtype$ > 0.0f))
213 + "average$ItypesPerOtype$");
218 if (average$ItypesPerOtype$ > max$ItypesPerOtype$)
219 throw new IllegalArgumentException("average$ItypesPerOtype$"
223 this.average$ItypesPerOtype$ = average$ItypesPerOtype$;
248 * @param average$ItypesPerOtype$
260 float average$ItypesPerOtype$,
[all …]
/libcore/ojluni/src/test/java/util/stream/Collectors/
DCollectorsTest.java375 s -> s.mapToInt(x -> x * 2).average().orElse(0));
377 s -> s.mapToLong(x -> x * 2).average().orElse(0));
379 s -> s.mapToDouble(x -> x * 2).average().orElse(0));
394 s -> s.mapToInt(x -> x * 2).average().orElse(0));
/libcore/ojluni/annotations/flagged_api/java/util/stream/
DDoubleStream.annotated.java82 public java.util.OptionalDouble average(); in average() method
DIntStream.annotated.java82 public java.util.OptionalDouble average(); in average() method
DLongStream.annotated.java82 public java.util.OptionalDouble average(); in average() method
/libcore/ojluni/src/main/java/java/util/stream/
DDoubleStream.java801 OptionalDouble average(); in average() method
DIntStream.java719 OptionalDouble average(); in average() method
DLongStream.java720 OptionalDouble average(); in average() method
DIntPipeline.java510 public final OptionalDouble average() {
DLongPipeline.java488 public final OptionalDouble average() {
DDoublePipeline.java502 public final OptionalDouble average() {
/libcore/expectations/
Dknownfailures.txt1681 description: "the average length of possible UTF-8 sequences is 2 bytes.",
/libcore/api/
Dcurrent.txt18241 method public java.util.OptionalDouble average();
18299 method public java.util.OptionalDouble average();
18358 method public java.util.OptionalDouble average();