Home
last modified time | relevance | path

Searched refs:mMetrics (Results 1 – 12 of 12) sorted by relevance

/tools/tradefederation/contrib/tests/src/com/android/regression/tests/
DMetricsTest.java43 private Metrics mMetrics; field in MetricsTest
47 mMetrics = spy(new Metrics(false)); in setUp()
55 data.forEach((k, v) -> v.forEach(e -> mMetrics.addRunMetric(k, e))); in testAddRunMetrics()
56 assertEquals(Doubles.asList(1.0, 1.1, 1.2), mMetrics.getRunMetrics().get("metric1")); in testAddRunMetrics()
57 assertEquals(Doubles.asList(2.0, 2.1, 2.2), mMetrics.getRunMetrics().get("metric2")); in testAddRunMetrics()
63 Arrays.asList("1.0", "1.1", "1.2").forEach(e -> mMetrics.addTestMetric(id1, "metric1", e)); in testAddTestMetrics()
65 Arrays.asList("2.0", "2.1", "2.2").forEach(e -> mMetrics.addTestMetric(id2, "metric1", e)); in testAddTestMetrics()
66 Arrays.asList("3.0", "3.1", "3.2").forEach(e -> mMetrics.addTestMetric(id2, "metric2", e)); in testAddTestMetrics()
70 mMetrics.getTestMetrics().get(new Pair<>(id1, "metric1"))); in testAddTestMetrics()
73 mMetrics.getTestMetrics().get(new Pair<>(id2, "metric1"))); in testAddTestMetrics()
[all …]
DMetricsXmlParserTest.java59 @Mock private Metrics mMetrics; field in MetricsXmlParserTest
77 mMetrics, Collections.emptySet(), new ByteArrayInputStream(new byte[0])); in testEmptyParse()
82 Mockito.verifyZeroInteractions(mMetrics); in testEmptyParse()
106 mMetrics, Collections.emptySet(), new ByteArrayInputStream(getOutput())); in testSimpleParse()
107 verify(mMetrics).setNumTests(3); in testSimpleParse()
108 verify(mMetrics).addRunMetric("time", "5"); in testSimpleParse()
109 verify(mMetrics, times(0)).addTestMetric(any(), anyString(), anyString()); in testSimpleParse()
110 Mockito.verifyNoMoreInteractions(mMetrics); in testSimpleParse()
140 mMetrics, Collections.emptySet(), new ByteArrayInputStream(getOutput())); in testParse()
142 verify(mMetrics).setNumTests(2); in testParse()
[all …]
/tools/tradefederation/contrib/src/com/android/performance/tests/
DHermeticMemoryTest.java98 private Map<String, String> mMetrics = new HashMap<>(); field in HermeticMemoryTest
174 reportMetrics(listener, mRuKey, mMetrics); in run()
221 mMetrics.put(dataSplit[0] + ":PSS_TOTAL", dataSplit[2]); in parseDumpsysInfo()
222 mMetrics.put(dataSplit[0] + ":SHARED_DIRTY", dataSplit[4]); in parseDumpsysInfo()
223 mMetrics.put(dataSplit[0] + ":PRIVATE_DIRTY", dataSplit[5]); in parseDumpsysInfo()
224 mMetrics.put(dataSplit[0] + ":HEAP_TOTAL", dataSplit[9]); in parseDumpsysInfo()
225 mMetrics.put(dataSplit[0] + ":HEAP_ALLOC", dataSplit[10]); in parseDumpsysInfo()
227 mMetrics.put(dataSplit[0] + ":PSS", dataSplit[1]); in parseDumpsysInfo()
255 mMetrics.put("System_" + dataSplit[0], dataSplit[1]); in parseProcInfo()
258 mMetrics.put("System_Kernal_Firmware", String.valueOf((mTotalMemory - memTotal))); in parseProcInfo()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/result/
DTestResult.java35 private Map<String, String> mMetrics; field in TestResult
46 mMetrics = new HashMap<>(); in TestResult()
65 return mMetrics; in getMetrics()
75 mMetrics = metrics; in setMetrics()
135 return Arrays.hashCode(new Object[] {mMetrics, mStackTrace, mStatus}); in hashCode()
150 return equal(mMetrics, other.mMetrics) in equals()
188 mergedResult.mMetrics.putAll(attempt.getMetrics()); in merge()
DJUnit4ResultForwarder.java95 metrics.putAll(((MetricAnnotation) a).mMetrics); in testFinished()
/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/
DAveragePostProcessorTest.java44 private HashMap<String, Metric> mMetrics; field in AveragePostProcessorTest
51 mMetrics = new HashMap<>(); in setUp()
59 mMetrics.put("key1", createDoubleListMetric()); in testAverage_double()
62 mMainListener.testRunEnded(15L, mMetrics); in testAverage_double()
82 mMetrics.put("key1", createLongListMetric()); in testAverage_long()
85 mMainListener.testRunEnded(15L, mMetrics); in testAverage_long()
/tools/tradefederation/contrib/src/com/android/regression/tests/
DMetricsXmlParser.java71 private Metrics mMetrics; field in MetricsXmlParser.MetricsXmlHandler
75 mMetrics = metrics; in MetricsXmlHandler()
85 mMetrics.setNumTests(Integer.parseInt(testCount)); in startElement()
86 mMetrics.addRunMetric(TIME_TAG, getMandatoryAttribute(name, TIME_TAG, attributes)); in startElement()
98 mMetrics.addRunMetric(metricName, metricValue); in startElement()
105 mMetrics.addTestMetric(mCurrentTest, metricName, metricValue); in startElement()
/tools/tradefederation/core/src/com/android/tradefed/util/hostmetric/
DEmailHostHealthAgent.java57 private List<HostMetric> mMetrics = new LinkedList<>(); field in EmailHostHealthAgent
62 mMetrics.add(new HostMetric(name, System.currentTimeMillis(), value, data)); in emitValue()
68 if (mMetrics.isEmpty()) { in flush()
119 while (!mMetrics.isEmpty()) { in generateEmailBody()
120 HostMetric tmp = mMetrics.remove(0); in generateEmailBody()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DDeviceJUnit4ClassRunner.java211 private Map<String, String> mMetrics = new HashMap<>(); field in DeviceJUnit4ClassRunner.TestMetrics
228 mMetrics.put(key, value); in addTestMetric()
244 mMetrics = new HashMap<>(); in before()
253 mProtoMetrics.putAll(TfMetricProtoUtil.upgradeConvert(mMetrics)); in after()
263 public HashMap<String, Metric> mMetrics = new HashMap<>(); field in DeviceJUnit4ClassRunner.MetricAnnotation
266 mMetrics.putAll(metrics); in MetricAnnotation()
DMetricTestCase.java37 public HashMap<String, Metric> mMetrics = new HashMap<>(); field in MetricTestCase
56 mMetrics.put(key, TfMetricProtoUtil.stringToMetric(value)); in addTestMetric()
60 mMetrics.put(key, metric); in addTestMetric()
DDeviceTestResult.java106 metrics.putAll(metricTest.mMetrics); in endTest()
108 metricTest.mMetrics = new HashMap<String, Metric>(); in endTest()
/tools/tradefederation/contrib/src/com/android/media/tests/
DCameraTestBase.java241 private Map<String, String> mMetrics = new HashMap<>(); field in CameraTestBase.AbstractCollectingListener
386 return mMetrics; in getAggregatedMetrics()