/tools/tradefederation/core/javatests/com/android/tradefed/postprocessor/ |
D | MetricFilePostProcessorTest.java | 23 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 54 Map<String, Metric> testMetrics) { in storeTestMetrics() 67 public Map<String, Metric> aggregateMetrics(Map<String, Metric> rawMetrics) { in aggregateMetrics() 92 HashMap<String, Metric> firstTestMetric = new HashMap<String, Metric>(); in processTestWithMetrics() 93 Metric.Builder metricBuilder1 = Metric.newBuilder(); in processTestWithMetrics() 95 Metric currentTestMetric = metricBuilder1.build(); in processTestWithMetrics() 107 HashMap<String, Metric> firstTestMetric = new HashMap<String, Metric>(); in processTestEmptyMetrics() 119 HashMap<String, Metric> firstTestMetric = new HashMap<String, Metric>(); in processTestMetricWithAggregate() 120 Metric.Builder metricBuilder1 = Metric.newBuilder(); in processTestMetricWithAggregate() 122 Metric currentTestMetric = metricBuilder1.build(); in processTestMetricWithAggregate() [all …]
|
D | AggregatePostProcessorTest.java | 20 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 82 Map<String, Metric.Builder> processedMetrics = new HashMap<String, Metric.Builder>(); in testSingularDoubleMetric() 85 HashMap<String, Metric> testMetrics = new HashMap<String, Metric>(); in testSingularDoubleMetric() 86 Metric.Builder metricBuilder = Metric.newBuilder(); in testSingularDoubleMetric() 88 Metric currentTestMetric = metricBuilder.build(); in testSingularDoubleMetric() 195 Map<String, Metric.Builder> processedMetrics = new HashMap<String, Metric.Builder>(); in testListDoubleMetric() 198 HashMap<String, Metric> testMetrics = new HashMap<String, Metric>(); in testListDoubleMetric() 199 Metric.Builder metricBuilder = Metric.newBuilder(); in testListDoubleMetric() 201 Metric currentTestMetric = metricBuilder.build(); in testListDoubleMetric() 296 Map<String, Metric.Builder> processedMetrics = new HashMap<String, Metric.Builder>(); in testNonNumericMetric() [all …]
|
D | BasePostProcessorTest.java | 29 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 87 public Map<String, Metric.Builder> processTestMetricsAndLogs( in processTestMetricsAndLogs() 89 HashMap<String, Metric> rawMetrics, in processTestMetricsAndLogs() 91 HashMap<String, Metric.Builder> newMap = new HashMap<>(); in processTestMetricsAndLogs() 94 Metric.Builder newBuilder = Metric.newBuilder(); in processTestMetricsAndLogs() 121 public Map<String, Metric.Builder> processRunMetricsAndLogs( in processRunMetricsAndLogs() 122 HashMap<String, Metric> rawMetrics, Map<String, LogFile> runLogs) { in processRunMetricsAndLogs() 123 HashMap<String, Metric.Builder> newMap = new HashMap<>(); in processRunMetricsAndLogs() 126 Metric.Builder newBuilder = Metric.newBuilder(); in processRunMetricsAndLogs() 153 public Map<String, Metric.Builder> processAllTestMetricsAndLogs( in processAllTestMetricsAndLogs() [all …]
|
D | AveragePostProcessorTest.java | 25 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 47 @Captor ArgumentCaptor<HashMap<String, Metric>> mCapture; 49 private HashMap<String, Metric> mMetrics; 69 HashMap<String, Metric> result = mCapture.getValue(); in testAverage_double() 76 Metric average = result.get("key1" + AveragePostProcessor.AVERAGE_KEY_TAG); in testAverage_double() 89 HashMap<String, Metric> result = mCapture.getValue(); in testAverage_long() 96 Metric average = result.get("key1" + AveragePostProcessor.AVERAGE_KEY_TAG); in testAverage_long() 101 private Metric createDoubleListMetric() { in createDoubleListMetric() 102 Metric.Builder builder = Metric.newBuilder(); in createDoubleListMetric() 114 private Metric createLongListMetric() { in createLongListMetric() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | MetricUtilityTest.java | 20 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 101 Map<String, Metric> firstTestMetric = new HashMap<String, Metric>(); in testStoreMultipleTestSingleIterationMetrics() 102 Metric.Builder metricBuilder1 = Metric.newBuilder(); in testStoreMultipleTestSingleIterationMetrics() 104 Metric currentTestMetric = metricBuilder1.build(); in testStoreMultipleTestSingleIterationMetrics() 108 Map<String, Metric> secondTestMetric = new HashMap<String, Metric>(); in testStoreMultipleTestSingleIterationMetrics() 109 Metric.Builder metricBuilder2 = Metric.newBuilder(); in testStoreMultipleTestSingleIterationMetrics() 111 Metric currentTestMetric2 = metricBuilder2.build(); in testStoreMultipleTestSingleIterationMetrics() 117 Map<String, ArrayListMultimap<String, Metric>> storedTestmetrics = mMetricUtil in testStoreMultipleTestSingleIterationMetrics() 146 Map<String, Metric> firstIterationMetric = new HashMap<String, Metric>(); in testStoreSingleTestMultipleIterationMetrics() 147 Metric.Builder metricBuilder1 = Metric.newBuilder(); in testStoreSingleTestMultipleIterationMetrics() [all …]
|
D | JUnitXmlParserTest.java | 23 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 83 verify(mMockListener).testEnded(test1, new HashMap<String, Metric>()); in testParse() 85 verify(mMockListener).testEnded(test2, new HashMap<String, Metric>()); in testParse() 90 verify(mMockListener).testEnded(test3, new HashMap<String, Metric>()); in testParse() 91 verify(mMockListener).testRunEnded(5000L, new HashMap<String, Metric>()); in testParse() 110 verify(mMockListener).testEnded(test1, new HashMap<String, Metric>()); in testParseErrorAndSkipped() 113 verify(mMockListener).testEnded(test2, new HashMap<String, Metric>()); in testParseErrorAndSkipped() 116 verify(mMockListener).testEnded(test3, new HashMap<String, Metric>()); in testParseErrorAndSkipped() 117 verify(mMockListener).testRunEnded(918686L, new HashMap<String, Metric>()); in testParseErrorAndSkipped() 132 verify(mMockListener).testEnded(test1, new HashMap<String, Metric>()); in testParseError_format() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/result/ |
D | TestRunResultTest.java | 24 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 49 result.testEnded(test, new HashMap<String, Metric>()); in testGetNumTestsInState() 70 result.testEnded(test, new HashMap<String, Metric>()); in testGetNumTestsInState_failed() 85 result.testEnded(test, 25L, new HashMap<String, Metric>()); in testSpecifyElapsedTime() 101 result.testRunEnded(0, new HashMap<String, Metric>()); in testMultiRun() 110 result.testRunEnded(0, new HashMap<String, Metric>()); in testMultiRun() 131 result.testEnded(test1, new HashMap<String, Metric>()); in testMultiRun_WithTestCases() 135 result.testEnded(test2, new HashMap<String, Metric>()); in testMultiRun_WithTestCases() 137 result.testRunEnded(0, new HashMap<String, Metric>()); in testMultiRun_WithTestCases() 149 result.testEnded(test2, new HashMap<String, Metric>()); in testMultiRun_WithTestCases() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/postprocessor/ |
D | AggregatePostProcessor.java | 21 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 63 private HashMap<String, ArrayListMultimap<String, Metric>> mStoredTestMetrics = 64 new HashMap<String, ArrayListMultimap<String, Metric>>(); 67 public Map<String, Metric.Builder> processTestMetricsAndLogs( in processTestMetricsAndLogs() 69 HashMap<String, Metric> testMetrics, in processTestMetricsAndLogs() 78 ArrayListMultimap<String, Metric> storedMetricsForThisTest = in processTestMetricsAndLogs() 80 for (Map.Entry<String, Metric> entry : testMetrics.entrySet()) { in processTestMetricsAndLogs() 84 Map<String, Metric.Builder> aggregateMetrics = new HashMap<String, Metric.Builder>(); in processTestMetricsAndLogs() 86 List<Metric> metrics = storedMetricsForThisTest.get(metricKey); in processTestMetricsAndLogs() 88 metrics.stream().map(Metric::getMeasurements).collect(Collectors.toList()); in processTestMetricsAndLogs() [all …]
|
D | BasePostProcessor.java | 26 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 63 private ArrayListMultimap<String, Metric> storedTestMetrics = ArrayListMultimap.create(); 84 public abstract Map<String, Metric.Builder> processRunMetricsAndLogs( in processRunMetricsAndLogs() 85 HashMap<String, Metric> rawMetrics, Map<String, LogFile> runLogs); in processRunMetricsAndLogs() 89 public Map<String, Metric.Builder> processTestMetricsAndLogs( in processTestMetricsAndLogs() 91 HashMap<String, Metric> testMetrics, in processTestMetricsAndLogs() 93 return new HashMap<String, Metric.Builder>(); in processTestMetricsAndLogs() 98 public Map<String, Metric.Builder> processAllTestMetricsAndLogs( in processAllTestMetricsAndLogs() 99 ListMultimap<String, Metric> allTestMetrics, in processAllTestMetricsAndLogs() 101 return new HashMap<String, Metric.Builder>(); in processAllTestMetricsAndLogs() [all …]
|
D | IPostProcessor.java | 18 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 53 public Map<String, Metric.Builder> processRunMetricsAndLogs( in processRunMetricsAndLogs() 54 HashMap<String, Metric> rawMetrics, Map<String, LogFile> runLogs); in processRunMetricsAndLogs() 66 public Map<String, Metric.Builder> processTestMetricsAndLogs( in processTestMetricsAndLogs() 68 HashMap<String, Metric> testMetrics, in processTestMetricsAndLogs() 82 public Map<String, Metric.Builder> processAllTestMetricsAndLogs( in processAllTestMetricsAndLogs() 83 ListMultimap<String, Metric> allTestMetrics, in processAllTestMetricsAndLogs()
|
/tools/tradefederation/core/javatests/com/android/tradefed/retry/ |
D | ResultAggregatorTest.java | 27 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 152 mAggregator.testEnded(test1, new HashMap<String, Metric>()); in testForwarding() 157 mAggregator.testEnded(test2, new HashMap<String, Metric>()); in testForwarding() 161 mAggregator.testRunEnded(450L, new HashMap<String, Metric>()); in testForwarding() 166 mAggregator.testEnded(test2, new HashMap<String, Metric>()); in testForwarding() 167 mAggregator.testRunEnded(450L, new HashMap<String, Metric>()); in testForwarding() 191 Mockito.<HashMap<String, Metric>>any()); in testForwarding() 201 Mockito.<HashMap<String, Metric>>any()); in testForwarding() 204 inOrder.verify(mDetailedListener).testRunEnded(450L, new HashMap<String, Metric>()); in testForwarding() 213 Mockito.<HashMap<String, Metric>>any()); in testForwarding() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/invoker/ |
D | ShardListenerTest.java | 24 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 75 mShardListener.testEnded(tid, 0L, new HashMap<String, Metric>()); in testBufferAndReplay() 76 mShardListener.testRunEnded(0L, new HashMap<String, Metric>()); in testBufferAndReplay() 84 inOrder.verify(mMockListener).testEnded(tid, 0L, new HashMap<String, Metric>()); in testBufferAndReplay() 85 inOrder.verify(mMockListener).testRunEnded(0L, new HashMap<String, Metric>()); in testBufferAndReplay() 93 verify(mMockListener).testEnded(tid, 0L, new HashMap<String, Metric>()); in testBufferAndReplay() 94 verify(mMockListener).testRunEnded(0L, new HashMap<String, Metric>()); in testBufferAndReplay() 109 mShardListener.testEnded(tid, 0L, new HashMap<String, Metric>()); in testPlayRuns() 110 mShardListener.testRunEnded(0L, new HashMap<String, Metric>()); in testPlayRuns() 118 inOrder.verify(mMockListener).testEnded(tid, 0L, new HashMap<String, Metric>()); in testPlayRuns() [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | power_metrics.py | 65 class Metric(object): class 90 return Metric(amps, CURRENT, AMP, name=name) 95 return Metric(watts, POWER, WATT, name=name) 100 return Metric(seconds, TIME, SECOND, name=name) 119 return Metric(self.value + other.to_unit(self.unit).value, 126 return Metric(self.value - other.to_unit(self.unit).value, 153 return Metric(new_value, self._unit_type, new_unit, self.name) 188 test_starts[seg_name] = Metric( 191 test_ends[seg_name] = Metric( 215 Metric.amps(p[1], 'percentile_%s' % p[0]).to_unit(MILLIAMP) for p in [all …]
|
/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/util/proto/ |
D | TfMetricProtoUtil.java | 23 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 24 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric.Builder; 37 public static Map<String, String> compatibleConvert(Map<String, Metric> map) { in compatibleConvert() 73 public static HashMap<String, Metric> upgradeConvert(Map<String, String> metrics) { in upgradeConvert() 84 public static HashMap<String, Metric> upgradeConvert( in upgradeConvert() 86 HashMap<String, Metric> newFormat = new LinkedHashMap<>(); in upgradeConvert() 88 Metric metric = null; in upgradeConvert() 122 public static Metric stringToMetric(String metric) { in stringToMetric() 124 Metric m = in stringToMetric() 125 Metric.newBuilder() in stringToMetric() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/ |
D | NoisyDryRunTestTest.java | 29 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 90 mMockListener.testEnded(Mockito.any(), Mockito.<HashMap<String, Metric>>any()); in testRun() 91 mMockListener.testRunEnded(Mockito.eq(0L), Mockito.<HashMap<String, Metric>>any()); in testRun() 96 mMockListener.testEnded(Mockito.any(), Mockito.<HashMap<String, Metric>>any()); in testRun() 98 mMockListener.testEnded(Mockito.any(), Mockito.<HashMap<String, Metric>>any()); in testRun() 99 mMockListener.testRunEnded(Mockito.eq(0L), Mockito.<HashMap<String, Metric>>any()); in testRun() 117 mMockListener.testEnded(Mockito.any(), Mockito.<HashMap<String, Metric>>any()); in testRun_withKeystore() 118 mMockListener.testRunEnded(Mockito.eq(0L), Mockito.<HashMap<String, Metric>>any()); in testRun_withKeystore() 123 mMockListener.testEnded(Mockito.any(), Mockito.<HashMap<String, Metric>>any()); in testRun_withKeystore() 125 mMockListener.testRunEnded(Mockito.eq(0L), Mockito.<HashMap<String, Metric>>any()); in testRun_withKeystore() [all …]
|
D | PythonUnitTestResultParserTest.java | 24 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 140 verify(mMockListener, times(1)).testRunEnded(0L, new HashMap<String, Metric>()); in testParseNoTests() 156 .testEnded(Mockito.eq(id), Mockito.<HashMap<String, Metric>>any()); in testParseSingleTestPass() 157 inOrder.verify(mMockListener, times(1)).testRunEnded(1000L, new HashMap<String, Metric>()); in testParseSingleTestPass() 175 inOrder.verify(mMockListener, times(1)).testRunEnded(1000L, new HashMap<String, Metric>()); in testParsePartialSingleLineMatchSkipped() 196 .testEnded(Mockito.eq(id), Mockito.<HashMap<String, Metric>>any()); in testParseSingleTestPassWithExpectedFailure() 197 inOrder.verify(mMockListener, times(1)).testRunEnded(1000L, new HashMap<String, Metric>()); in testParseSingleTestPassWithExpectedFailure() 218 .testEnded(Mockito.eq(id), Mockito.<HashMap<String, Metric>>any()); in testParseSingleWithModuleClass() 219 inOrder.verify(mMockListener, times(1)).testRunEnded(1000L, new HashMap<String, Metric>()); in testParseSingleWithModuleClass() 242 .testEnded(Mockito.eq(id), Mockito.<HashMap<String, Metric>>any()); in testParseMultiTestPass() [all …]
|
D | DeviceTestCaseTest.java | 26 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 126 verify(listener).testEnded(test2, new HashMap<String, Metric>()); in testRun_suite() 127 verify(listener).testRunEnded(Mockito.anyLong(), Mockito.<HashMap<String, Metric>>any()); in testRun_suite() 150 verify(listener).testRunEnded(Mockito.anyLong(), Mockito.<HashMap<String, Metric>>any()); in testRun_includeFilter() 169 verify(listener).testEnded(test2, new HashMap<String, Metric>()); in testRun_excludeFilter() 170 verify(listener).testRunEnded(Mockito.anyLong(), Mockito.<HashMap<String, Metric>>any()); in testRun_excludeFilter() 191 verify(listener).testEnded(test1, new HashMap<String, Metric>()); in testRun_includeAnnotationFiltering() 192 verify(listener).testRunEnded(Mockito.anyLong(), Mockito.<HashMap<String, Metric>>any()); in testRun_includeAnnotationFiltering() 208 .testEnded(capture.capture(), Mockito.<HashMap<String, Metric>>any()); in testRun_checkAnnotation() 209 verify(listener).testRunEnded(Mockito.anyLong(), Mockito.<HashMap<String, Metric>>any()); in testRun_checkAnnotation() [all …]
|
D | GTestResultParserTest.java | 24 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 56 Mockito.<HashMap<String, Metric>>any()); in testParseSimpleFile() 58 .testRunEnded(Mockito.anyLong(), Mockito.<HashMap<String, Metric>>any()); in testParseSimpleFile() 77 Mockito.<HashMap<String, Metric>>any()); in testParseSimpleFileNoTimes() 79 .testRunEnded(Mockito.anyLong(), Mockito.<HashMap<String, Metric>>any()); in testParseSimpleFileNoTimes() 86 HashMap<String, Metric> expected = new HashMap<>(); in testParseNoTests() 113 Mockito.<HashMap<String, Metric>>any()); in testParseLargerFile() 115 .testRunEnded(Mockito.anyLong(), Mockito.<HashMap<String, Metric>>any()); in testParseLargerFile() 140 Mockito.<HashMap<String, Metric>>any()); in testParseWithFailures() 142 .testRunEnded(Mockito.anyLong(), Mockito.<HashMap<String, Metric>>any()); in testParseWithFailures() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/metric/ |
D | DeviceMetricDataFuncTest.java | 25 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 72 Callable<HashMap<String, Metric>> task = in testAddToMetricsMultiThreaded() 73 new Callable<HashMap<String, Metric>>() { in testAddToMetricsMultiThreaded() 76 public HashMap<String, Metric> call() throws Exception { in testAddToMetricsMultiThreaded() 79 Metric.newBuilder() in testAddToMetricsMultiThreaded() 84 HashMap<String, Metric> data = new HashMap<>(); in testAddToMetricsMultiThreaded() 90 List<Callable<HashMap<String, Metric>>> tasks = Collections.nCopies(threadCount, task); in testAddToMetricsMultiThreaded() 97 List<Future<HashMap<String, Metric>>> futures = executorService.invokeAll(tasks); in testAddToMetricsMultiThreaded() 100 HashMap<String, Metric> metricsData = new HashMap<String, Metric>(futures.size()); in testAddToMetricsMultiThreaded() 101 for (Future<HashMap<String, Metric>> future : futures) { in testAddToMetricsMultiThreaded()
|
D | DeviceMetricDataTest.java | 27 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 59 Metric.newBuilder() in testSingleDeviceAdd() 61 HashMap<String, Metric> resMetrics = new HashMap<>(); in testSingleDeviceAdd() 75 Metric.newBuilder() in testSingleDeviceAddToDevice() 77 HashMap<String, Metric> resMetrics = new HashMap<>(); in testSingleDeviceAddToDevice() 91 Metric.newBuilder() in testMultiDeviceAdd() 93 HashMap<String, Metric> resMetrics = new HashMap<>(); in testMultiDeviceAdd() 112 Metric.newBuilder() in testMultiDeviceAdd_forDevice() 114 HashMap<String, Metric> resMetrics = new HashMap<>(); in testMultiDeviceAdd_forDevice()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | MetricUtility.java | 21 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 76 private Map<String, ArrayListMultimap<String, Metric>> mStoredTestMetrics = 77 new LinkedHashMap<String, ArrayListMultimap<String, Metric>>(); 88 Map<String, Metric> testMetrics) { in storeTestMetrics() 104 ArrayListMultimap<String, Metric> storedMetricsForThisTest = mStoredTestMetrics in storeTestMetrics() 106 for (Map.Entry<String, Metric> entry : testMetrics.entrySet()) { in storeTestMetrics() 157 public Map<String, Metric> aggregateMetrics(Map<String, Metric> rawMetrics) { in aggregateMetrics() 158 Map<String, Metric> aggregateMetrics = new LinkedHashMap<String, Metric>(); in aggregateMetrics() 159 for (Map.Entry<String, Metric> entry : rawMetrics.entrySet()) { in aggregateMetrics() 179 ArrayListMultimap<String, Metric> currentTest = mStoredTestMetrics.get(testName); in aggregateStoredTestMetricsAndWriteToFile() [all …]
|
/tools/tradefederation/core/test_framework/com/android/tradefed/postprocessor/ |
D | PerfettoGenericPostProcessor.java | 23 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 182 public Map<String, Metric.Builder> processTestMetricsAndLogs( in processTestMetricsAndLogs() 184 HashMap<String, Metric> testMetrics, in processTestMetricsAndLogs() 191 public Map<String, Metric.Builder> processRunMetricsAndLogs( in processRunMetricsAndLogs() 192 HashMap<String, Metric> rawMetrics, Map<String, LogFile> runLogs) { in processRunMetricsAndLogs() 226 private Map<String, Metric.Builder> processPerfettoMetrics(List<File> perfettoMetricFiles) { in processPerfettoMetrics() 227 Map<String, Metric.Builder> parsedMetrics = new HashMap<>(); in processPerfettoMetrics() 309 private Map<String, Metric.Builder> processPerfettoMetricsWithAlternativeMethods( in processPerfettoMetricsWithAlternativeMethods() 312 Map<String, Metric.Builder> result = new HashMap<>(); in processPerfettoMetricsWithAlternativeMethods() 342 private Map<String, Metric.Builder> flattenJson( in flattenJson() [all …]
|
D | StatsdGenericPostProcessor.java | 23 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 94 public Map<String, Metric.Builder> processTestMetricsAndLogs( in processTestMetricsAndLogs() 96 HashMap<String, Metric> testMetrics, in processTestMetricsAndLogs() 102 public Map<String, Metric.Builder> processRunMetricsAndLogs( in processRunMetricsAndLogs() 103 HashMap<String, Metric> rawMetrics, Map<String, LogFile> runLogs) { in processRunMetricsAndLogs() 112 protected Map<String, Metric.Builder> parseMetricsFromReportList( in parseMetricsFromReportList() 121 private Map<String, Metric.Builder> processStatsdReportsFromLogs( in processStatsdReportsFromLogs() 123 Map<String, Metric.Builder> parsedMetrics = new HashMap<>(); in processStatsdReportsFromLogs() 167 Map<String, Metric.Builder> metricsForReport = in processStatsdReportsFromLogs() 195 private Map<String, Metric.Builder> addPrefixToMetrics( in addPrefixToMetrics() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/result/proto/ |
D | StreamProtoResultReporterTest.java | 25 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 91 HashMap<String, Metric> metrics = new HashMap<String, Metric>(); in testStream() 101 mReporter.testEnded(test1, 10L, new HashMap<String, Metric>()); in testStream() 113 mReporter.testRunEnded(50L, new HashMap<String, Metric>()); in testStream() 130 inOrder.verify(mMockListener).testEnded(test1, 10L, new HashMap<String, Metric>()); in testStream() 137 Mockito.<HashMap<String, Metric>>any()); in testStream() 139 .testRunEnded(Mockito.anyLong(), Mockito.<HashMap<String, Metric>>any()); in testStream() 149 verify(mMockListener).testEnded(test1, 10L, new HashMap<String, Metric>()); in testStream() 156 Mockito.<HashMap<String, Metric>>any()); in testStream() 158 .testRunEnded(Mockito.anyLong(), Mockito.<HashMap<String, Metric>>any()); in testStream() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/junit4/ |
D | DeviceParameterizedRunnerTest.java | 29 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 146 inOrder.verify(mListener).testEnded(test1, new HashMap<String, Metric>()); in testRun() 148 inOrder.verify(mListener).testEnded(test2_p1, new HashMap<String, Metric>()); in testRun() 150 inOrder.verify(mListener).testEnded(test2_2, new HashMap<String, Metric>()); in testRun() 152 .testRunEnded(Mockito.anyLong(), Mockito.<HashMap<String, Metric>>any()); in testRun() 177 verify(mListener).testEnded(test1, new HashMap<String, Metric>()); in testRun_collectOnly() 179 verify(mListener).testEnded(test2_p1, new HashMap<String, Metric>()); in testRun_collectOnly() 181 verify(mListener).testEnded(test2_2, new HashMap<String, Metric>()); in testRun_collectOnly() 182 verify(mListener).testRunEnded(Mockito.anyLong(), Mockito.<HashMap<String, Metric>>any()); in testRun_collectOnly() 199 verify(mListener).testEnded(test2_p1, new HashMap<String, Metric>()); in testRun_method() [all …]
|