Home
last modified time | relevance | path

Searched refs:meanCalculator (Results 1 – 2 of 2) sorted by relevance

/external/lottie/lottie/src/test/java/com/airbnb/lottie/
DMeanCalculatorTest.java13 private MeanCalculator meanCalculator; field in MeanCalculatorTest
17 meanCalculator = new MeanCalculator(); in setup()
22 assertThat(meanCalculator.getMean(), equalTo(0f)); in testMeanWithNoNumbers()
27 meanCalculator.add(2); in testMeanWithOneNumber()
28 assertThat(meanCalculator.getMean(), equalTo(2f)); in testMeanWithOneNumber()
33 meanCalculator.add(2); in testMeanWithTwoNumbers()
34 meanCalculator.add(4); in testMeanWithTwoNumbers()
35 assertThat(meanCalculator.getMean(), equalTo(3f)); in testMeanWithTwoNumbers()
41 meanCalculator.add(i); in testMeanWithTwentyNumbers()
43 assertThat(meanCalculator.getMean(), equalTo(10.5f)); in testMeanWithTwentyNumbers()
[all …]
/external/lottie/lottie/src/main/java/com/airbnb/lottie/
DPerformanceTracker.java48 MeanCalculator meanCalculator = layerRenderTimes.get(layerName); in recordRenderTime() local
49 if (meanCalculator == null) { in recordRenderTime()
50 meanCalculator = new MeanCalculator(); in recordRenderTime()
51 layerRenderTimes.put(layerName, meanCalculator); in recordRenderTime()
53 meanCalculator.add(millis); in recordRenderTime()