Home
last modified time | relevance | path

Searched refs:ONE_VALUE (Results 1 – 11 of 11) sorted by relevance

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DProto2ExtensionLookupSchemaTest.java92 (long) TestEnum.ONE_VALUE); in testUnknownEnum()
105 CodedOutputStream.computeUInt32SizeNoTag(TestEnum.ONE_VALUE) in testUnknownEnum()
107 + CodedOutputStream.computeUInt32SizeNoTag(TestEnum.ONE_VALUE); in testUnknownEnum()
110 packedOut.writeEnumNoTag(TestEnum.ONE_VALUE); in testUnknownEnum()
DAbstractProto2LiteSchemaTest.java152 (long) TestEnum.ONE_VALUE); in unknownEnum()
165 CodedOutputStream.computeUInt32SizeNoTag(TestEnum.ONE_VALUE) in unknownEnum()
167 + CodedOutputStream.computeUInt32SizeNoTag(TestEnum.ONE_VALUE); in unknownEnum()
170 packedOut.writeEnumNoTag(TestEnum.ONE_VALUE); in unknownEnum()
DAbstractProto2SchemaTest.java146 (long) TestEnum.ONE_VALUE); in unknownEnum()
159 CodedOutputStream.computeUInt32SizeNoTag(TestEnum.ONE_VALUE) in unknownEnum()
161 + CodedOutputStream.computeUInt32SizeNoTag(TestEnum.ONE_VALUE); in unknownEnum()
164 packedOut.writeEnumNoTag(TestEnum.ONE_VALUE); in unknownEnum()
/external/guava/android/guava-tests/test/com/google/common/math/
DPairedStatsAccumulatorTest.java26 import static com.google.common.math.StatsTesting.ONE_VALUE;
87 oneValueAccumulator.add(ONE_VALUE, OTHER_ONE_VALUE); in setUp()
90 oneValueAccumulatorByAddAllEmptyPairedStats.add(ONE_VALUE, OTHER_ONE_VALUE); in setUp()
110 Collections.nCopies(OTHER_MANY_VALUES_COUNT, ONE_VALUE), OTHER_MANY_VALUES); in setUp()
113 Collections.nCopies(OTHER_MANY_VALUES_COUNT, ONE_VALUE), OTHER_MANY_VALUES, 2); in setUp()
117 Collections.nCopies(MANY_VALUES_COUNT, ONE_VALUE), in setUp()
121 Collections.nCopies(MANY_VALUES_COUNT, ONE_VALUE), in setUp()
140 accumulator.add(ONE_VALUE, OTHER_ONE_VALUE); in testCountOverflow_doesNotThrow()
DStatsAccumulatorTest.java39 import static com.google.common.math.StatsTesting.ONE_VALUE;
97 oneValueAccumulator.add(ONE_VALUE); in setUp()
100 oneValueAccumulatorByAddAllEmptyStats.add(ONE_VALUE); in setUp()
107 twoValuesAccumulatorByAddAllStats.addAll(Stats.of(ONE_VALUE)); in setUp()
181 accumulator.add(ONE_VALUE); in testCountOverflow_doesNotThrow()
206 assertThat(oneValueAccumulator.mean()).isWithin(ALLOWED_ERROR).of(ONE_VALUE); in testMean()
207 assertThat(oneValueAccumulatorByAddAllEmptyStats.mean()).isWithin(ALLOWED_ERROR).of(ONE_VALUE); in testMean()
286 assertThat(oneValueAccumulator.sum()).isWithin(ALLOWED_ERROR).of(ONE_VALUE); in testSum()
287 assertThat(oneValueAccumulatorByAddAllEmptyStats.sum()).isWithin(ALLOWED_ERROR).of(ONE_VALUE); in testSum()
609 assertThat(oneValueAccumulator.max()).isEqualTo(ONE_VALUE); in testMax()
[all …]
DStatsTesting.java47 static final double ONE_VALUE = 12.34; field in StatsTesting
218 static final Stats ONE_VALUE_STATS = Stats.of(ONE_VALUE);
276 createPairedStatsOf(ImmutableList.of(ONE_VALUE), ImmutableList.of(OTHER_ONE_VALUE));
305 accumulator.add(ONE_VALUE, y); in buildVerticalValuesPairedStats()
313 accumulator.add(ONE_VALUE, OTHER_ONE_VALUE); in buildConstantValuesPairedStats()
DStatsTest.java58 import static com.google.common.math.StatsTesting.ONE_VALUE;
117 assertThat(ONE_VALUE_STATS.mean()).isWithin(ALLOWED_ERROR).of(ONE_VALUE); in testMean()
170 assertThat(ONE_VALUE_STATS.sum()).isWithin(ALLOWED_ERROR).of(ONE_VALUE); in testSum()
400 assertThat(ONE_VALUE_STATS.max()).isEqualTo(ONE_VALUE); in testMax()
437 assertThat(ONE_VALUE_STATS.min()).isEqualTo(ONE_VALUE); in testMin()
518 assertThat(Stats.meanOf(ONE_VALUE)).isWithin(ALLOWED_ERROR).of(ONE_VALUE); in testMeanOf()
/external/guava/guava-tests/test/com/google/common/math/
DPairedStatsAccumulatorTest.java26 import static com.google.common.math.StatsTesting.ONE_VALUE;
87 oneValueAccumulator.add(ONE_VALUE, OTHER_ONE_VALUE); in setUp()
90 oneValueAccumulatorByAddAllEmptyPairedStats.add(ONE_VALUE, OTHER_ONE_VALUE); in setUp()
110 Collections.nCopies(OTHER_MANY_VALUES_COUNT, ONE_VALUE), OTHER_MANY_VALUES); in setUp()
113 Collections.nCopies(OTHER_MANY_VALUES_COUNT, ONE_VALUE), OTHER_MANY_VALUES, 2); in setUp()
117 Collections.nCopies(MANY_VALUES_COUNT, ONE_VALUE), in setUp()
121 Collections.nCopies(MANY_VALUES_COUNT, ONE_VALUE), in setUp()
140 accumulator.add(ONE_VALUE, OTHER_ONE_VALUE); in testCountOverflow_doesNotThrow()
DStatsAccumulatorTest.java44 import static com.google.common.math.StatsTesting.ONE_VALUE;
104 oneValueAccumulator.add(ONE_VALUE); in setUp()
107 oneValueAccumulatorByAddAllEmptyStats.add(ONE_VALUE); in setUp()
114 twoValuesAccumulatorByAddAllStats.addAll(Stats.of(ONE_VALUE)); in setUp()
188 accumulator.add(ONE_VALUE); in testCountOverflow_doesNotThrow()
213 assertThat(oneValueAccumulator.mean()).isWithin(ALLOWED_ERROR).of(ONE_VALUE); in testMean()
214 assertThat(oneValueAccumulatorByAddAllEmptyStats.mean()).isWithin(ALLOWED_ERROR).of(ONE_VALUE); in testMean()
293 assertThat(oneValueAccumulator.sum()).isWithin(ALLOWED_ERROR).of(ONE_VALUE); in testSum()
294 assertThat(oneValueAccumulatorByAddAllEmptyStats.sum()).isWithin(ALLOWED_ERROR).of(ONE_VALUE); in testSum()
616 assertThat(oneValueAccumulator.max()).isEqualTo(ONE_VALUE); in testMax()
[all …]
DStatsTesting.java48 static final double ONE_VALUE = 12.34; field in StatsTesting
247 static final Stats ONE_VALUE_STATS = Stats.of(ONE_VALUE);
305 createPairedStatsOf(ImmutableList.of(ONE_VALUE), ImmutableList.of(OTHER_ONE_VALUE));
334 accumulator.add(ONE_VALUE, y); in buildVerticalValuesPairedStats()
342 accumulator.add(ONE_VALUE, OTHER_ONE_VALUE); in buildConstantValuesPairedStats()
DStatsTest.java64 import static com.google.common.math.StatsTesting.ONE_VALUE;
127 assertThat(ONE_VALUE_STATS.mean()).isWithin(ALLOWED_ERROR).of(ONE_VALUE); in testMean()
180 assertThat(ONE_VALUE_STATS.sum()).isWithin(ALLOWED_ERROR).of(ONE_VALUE); in testSum()
410 assertThat(ONE_VALUE_STATS.max()).isEqualTo(ONE_VALUE); in testMax()
447 assertThat(ONE_VALUE_STATS.min()).isEqualTo(ONE_VALUE); in testMin()
583 assertThat(Stats.meanOf(ONE_VALUE)).isWithin(ALLOWED_ERROR).of(ONE_VALUE); in testMeanOf()