/tools/tradefederation/contrib/tests/src/com/android/regression/tests/ |
D | MetricsTest.java | 43 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 …]
|
D | MetricsXmlParserTest.java | 59 @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/core/tests/src/com/android/tradefed/device/metric/ |
D | HostStatsdMetricCollectorTest.java | 70 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()
|
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/ |
D | TestResult.java | 38 private Map<String, String> mMetrics; field in TestResult 49 mMetrics = new HashMap<>(); in TestResult() 79 return mMetrics; in getMetrics() 89 mMetrics = metrics; in setMetrics() 154 return Arrays.hashCode(new Object[] {mMetrics, mFailureDescription, mStatus}); in hashCode() 169 return Objects.equals(mMetrics, other.mMetrics) in equals() 213 mergedResult.mMetrics.putAll(attempt.getMetrics()); in merge()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/ |
D | AveragePostProcessorTest.java | 44 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/performance/tests/ |
D | HermeticMemoryTest.java | 99 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 …]
|
D | SystemMemoryTest.java | 52 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/contrib/src/com/android/regression/tests/ |
D | MetricsXmlParser.java | 71 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/global_configuration/com/android/tradefed/util/hostmetric/ |
D | EmailHostHealthAgent.java | 57 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/test_framework/com/android/tradefed/testtype/ |
D | MetricTestCase.java | 37 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()
|
D | DeviceJUnit4ClassRunner.java | 213 private Map<String, String> mMetrics = new HashMap<>(); field in DeviceJUnit4ClassRunner.TestMetrics 230 mMetrics.put(key, value); in addTestMetric() 246 mMetrics = new HashMap<>(); in before() 255 mProtoMetrics.putAll(TfMetricProtoUtil.upgradeConvert(mMetrics)); in after() 265 public HashMap<String, Metric> mMetrics = new HashMap<>(); field in DeviceJUnit4ClassRunner.MetricAnnotation 268 mMetrics.putAll(metrics); in MetricAnnotation()
|
D | DeviceTestResult.java | 106 metrics.putAll(metricTest.mMetrics); in endTest() 108 metricTest.mMetrics = new HashMap<String, Metric>(); in endTest()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | ClangCodeCoverageListenerTest.java | 81 private HashMap<String, MetricMeasurement.Metric> mMetrics; field in ClangCodeCoverageListenerTest 105 mMetrics = TfMetricProtoUtil.upgradeConvert(metric); in setUp() 123 mListener.testRunEnded(ELAPSED_TIME, mMetrics); in coverageDisabled_noCoverageLog() 136 mListener.testRunEnded(ELAPSED_TIME, mMetrics); in clangCoverageDisabled_noCoverageLog() 156 mListener.testRunEnded(ELAPSED_TIME, mMetrics); in coverageFlushEnabled_flushCalled() 183 mListener.testRunEnded(ELAPSED_TIME, mMetrics); in testRun_logsCoverageFile() 220 mListener.testRunEnded(ELAPSED_TIME, mMetrics); in testOtherFileTypes_ignored() 245 mListener.testRunEnded(ELAPSED_TIME, mMetrics); in testNoClangMeasurements_noLogFile() 271 mListener.testRunEnded(ELAPSED_TIME, mMetrics); in testProfileToolInConfiguration_notFromBuild() 298 mListener.testRunEnded(ELAPSED_TIME, mMetrics); in testProfileToolNotFound_throwsException() [all …]
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | CameraTestMetricsCollectionListener.java | 38 private Map<String, String> mMetrics = new HashMap<>(); field in CameraTestMetricsCollectionListener.AbstractCameraTestMetricsCollectionListener 158 return mMetrics; in getAggregatedMetrics()
|
D | CameraTestBase.java | 223 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/ |
D | JUnit4ResultForwarder.java | 103 metrics.putAll(((MetricAnnotation) a).mMetrics); in testFinished()
|
/tools/tradefederation/core/tests/res/testdata/ |
D | tradefed-prebuilt-cts-8.0_r21.jar | META-INF/
META-INF/MANIFEST.MF
jline/
jline/CompletionHandler.class
CompletionHandler ... |