Home
last modified time | relevance | path

Searched refs:mMetrics (Results 1 – 16 of 16) 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.java60 @Mock private Metrics mMetrics; field in MetricsXmlParserTest
78 mMetrics, Collections.emptySet(), new ByteArrayInputStream(new byte[0])); in testEmptyParse()
83 verifyNoMoreInteractions(mMetrics); in testEmptyParse()
107 mMetrics, Collections.emptySet(), new ByteArrayInputStream(getOutput())); in testSimpleParse()
108 verify(mMetrics).setNumTests(3); in testSimpleParse()
109 verify(mMetrics).addRunMetric("time", "5"); in testSimpleParse()
110 verify(mMetrics, times(0)).addTestMetric(any(), anyString(), anyString()); in testSimpleParse()
111 Mockito.verifyNoMoreInteractions(mMetrics); in testSimpleParse()
141 mMetrics, Collections.emptySet(), new ByteArrayInputStream(getOutput())); in testParse()
143 verify(mMetrics).setNumTests(2); in testParse()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/device/metric/
DHostStatsdMetricCollectorTest.java70 private HashMap<String, Metric> mMetrics = new HashMap<>(); field in HostStatsdMetricCollectorTest
95 mCollector.testEnded(mTest, mMetrics); in testCollect_perTest()
97 mCollector.testEnded(mTest, mMetrics); in testCollect_perTest()
98 mCollector.testRunEnded(0L, mMetrics); in testCollect_perTest()
119 mCollector.testEnded(mTest, mMetrics); in testCollect_testFail()
121 mCollector.testEnded(mTest, mMetrics); in testCollect_testFail()
122 mCollector.testRunEnded(0L, mMetrics); in testCollect_testFail()
138 mCollector.testEnded(mTest, mMetrics); in testCollect_perRun()
140 mCollector.testEnded(mTest, mMetrics); in testCollect_perRun()
141 mCollector.testRunEnded(0L, mMetrics); in testCollect_perRun()
DClangCodeCoverageCollectorTest.java105 private HashMap<String, MetricMeasurement.Metric> mMetrics; field in ClangCodeCoverageCollectorTest
131 mMetrics = TfMetricProtoUtil.upgradeConvert(metric); in setUp()
170 mListener.testRunEnded(ELAPSED_TIME, mMetrics); in coverageDisabled_noCoverageLog()
185 mListener.testRunEnded(ELAPSED_TIME, mMetrics); in clangCoverageDisabled_noCoverageLog()
206 mListener.testRunEnded(ELAPSED_TIME, mMetrics); in coverageFlushEnabled_flushCalled()
235 mListener.testRunEnded(ELAPSED_TIME, mMetrics); in testRun_misc_trace_only_logsCoverageFile()
292 mListener.testRunEnded(ELAPSED_TIME, mMetrics); in testRun_local_tmp_only_logsCoverageFile()
345 mListener.testRunEnded(ELAPSED_TIME, mMetrics); in testRun_both_locations_logsCoverageFile()
397 mListener.testRunEnded(ELAPSED_TIME, mMetrics); in testRun_noModuleName_logsCoverageFile()
440 mListener.testRunEnded(ELAPSED_TIME, mMetrics); in testRun_profraw_filter_option()
[all …]
/tools/tradefederation/contrib/src/com/android/performance/tests/
DHermeticMemoryTest.java99 private Map<String, String> mMetrics = new HashMap<>(); field in HermeticMemoryTest
175 reportMetrics(listener, mRuKey, mMetrics); in run()
222 mMetrics.put(dataSplit[0] + ":PSS_TOTAL", dataSplit[2]); in parseDumpsysInfo()
223 mMetrics.put(dataSplit[0] + ":SHARED_DIRTY", dataSplit[4]); in parseDumpsysInfo()
224 mMetrics.put(dataSplit[0] + ":PRIVATE_DIRTY", dataSplit[5]); in parseDumpsysInfo()
225 mMetrics.put(dataSplit[0] + ":HEAP_TOTAL", dataSplit[10]); in parseDumpsysInfo()
226 mMetrics.put(dataSplit[0] + ":HEAP_ALLOC", dataSplit[11]); in parseDumpsysInfo()
228 mMetrics.put(dataSplit[0] + ":PSS", dataSplit[1]); in parseDumpsysInfo()
256 mMetrics.put("System_" + dataSplit[0], dataSplit[1]); in parseProcInfo()
259 mMetrics.put("System_Kernel_Firmware", String.valueOf((mTotalMemory - memTotal))); in parseProcInfo()
[all …]
DSystemMemoryTest.java52 private Map<String, String> mMetrics = new HashMap<>(); field in SystemMemoryTest
65 reportMetrics(mlistener, mRuKey, mMetrics); in run()
95 mMetrics.put("System_MEMTOTAL", dataSplit[1]); in parseProcInfo()
98 mMetrics.put("System_MEMFREE", dataSplit[1]); in parseProcInfo()
101 mMetrics.put("System_CACHED", dataSplit[1]); in parseProcInfo()
/tools/tradefederation/core/javatests/com/android/tradefed/postprocessor/
DAveragePostProcessorTest.java49 private HashMap<String, Metric> mMetrics; field in AveragePostProcessorTest
58 mMetrics = new HashMap<>(); in setUp()
63 mMetrics.put("key1", createDoubleListMetric()); in testAverage_double()
65 mMainListener.testRunEnded(15L, mMetrics); in testAverage_double()
83 mMetrics.put("key1", createLongListMetric()); in testAverage_long()
85 mMainListener.testRunEnded(15L, mMetrics); in testAverage_long()
/tools/tradefederation/contrib/src/com/android/regression/tests/
DMetricsXmlParser.java72 private Metrics mMetrics; field in MetricsXmlParser.MetricsXmlHandler
76 mMetrics = metrics; in MetricsXmlHandler()
86 mMetrics.setNumTests(Integer.parseInt(testCount)); in startElement()
87 mMetrics.addRunMetric(TIME_TAG, getMandatoryAttribute(name, TIME_TAG, attributes)); in startElement()
99 mMetrics.addRunMetric(metricName, metricValue); in startElement()
106 mMetrics.addTestMetric(mCurrentTest, metricName, metricValue); in startElement()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DDeviceJUnit4ClassRunner.java216 private Map<String, String> mMetrics = new HashMap<>(); field in DeviceJUnit4ClassRunner.TestMetrics
233 mMetrics.put(key, value); in addTestMetric()
249 mMetrics = new HashMap<>(); in before()
258 mProtoMetrics.putAll(TfMetricProtoUtil.upgradeConvert(mMetrics)); in after()
268 public HashMap<String, Metric> mMetrics = new HashMap<>(); field in DeviceJUnit4ClassRunner.MetricAnnotation
271 mMetrics.putAll(metrics); in MetricAnnotation()
288 return Objects.equals(mMetrics, o.mMetrics); in equals()
293 return Objects.hash(mMetrics); in hashCode()
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.java126 metrics.putAll(metricTest.mMetrics); in endTest()
128 metricTest.mMetrics = new HashMap<String, Metric>(); in endTest()
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/
DTestResult.java39 private Map<String, String> mMetrics; field in TestResult
50 mMetrics = new HashMap<>(); in TestResult()
89 return mMetrics; in getMetrics()
99 mMetrics = metrics; in setMetrics()
173 return Arrays.hashCode(new Object[] {mMetrics, mFailureDescription, mStatus}); in hashCode()
188 return Objects.equals(mMetrics, other.mMetrics) in equals()
234 mergedResult.mMetrics.putAll(attempt.getMetrics()); in merge()
/tools/tradefederation/core/global_configuration/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/contrib/src/com/android/media/tests/
DCameraTestMetricsCollectionListener.java39 private Map<String, String> mMetrics = new HashMap<>(); field in CameraTestMetricsCollectionListener.AbstractCameraTestMetricsCollectionListener
178 return mMetrics; in getAggregatedMetrics()
DCameraTestBase.java223 private Map<String, String> mMetrics = new HashMap<>(); field in CameraTestBase
231 return mMetrics; in getAggregatedMetrics()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/junit4/
DJUnit4ResultForwarder.java178 metrics.putAll(((MetricAnnotation) a).mMetrics); in testFinished()