Home
last modified time | relevance | path

Searched refs:runMetrics (Results 1 – 25 of 53) sorted by relevance

123

/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DRuntimeRestartCollectorTest.java209 HashMap<String, Metric> runMetrics = new HashMap<>(); in testAddingMetrics_noRuntimeRestart_noPriorRuntimeRestart() local
212 mCollector.testRunEnded(0, runMetrics); in testAddingMetrics_noRuntimeRestart_noPriorRuntimeRestart()
216 int count = getCount(runMetrics); in testAddingMetrics_noRuntimeRestart_noPriorRuntimeRestart()
220 runMetrics, RuntimeRestartCollector.METRIC_SUFFIX_SYSTEM_TIMESTAMP_SECS); in testAddingMetrics_noRuntimeRestart_noPriorRuntimeRestart()
222 runMetrics, RuntimeRestartCollector.METRIC_SUFFIX_SYSTEM_TIMESTAMP_FORMATTED); in testAddingMetrics_noRuntimeRestart_noPriorRuntimeRestart()
223 ensureNoMetricWithKeySuffix(runMetrics, RuntimeRestartCollector.METRIC_SUFFIX_UPTIME_NANOS); in testAddingMetrics_noRuntimeRestart_noPriorRuntimeRestart()
225 runMetrics, RuntimeRestartCollector.METRIC_SUFFIX_UPTIME_FORMATTED); in testAddingMetrics_noRuntimeRestart_noPriorRuntimeRestart()
252 HashMap<String, Metric> runMetrics = new HashMap<>(); in testAddingMetrics_noRuntimeRestart_withPriorRuntimeRestart() local
255 mCollector.testRunEnded(0, runMetrics); in testAddingMetrics_noRuntimeRestart_withPriorRuntimeRestart()
259 int count = getCount(runMetrics); in testAddingMetrics_noRuntimeRestart_withPriorRuntimeRestart()
[all …]
DRebootReasonCollectorTest.java109 HashMap<String, Metric> runMetrics = new HashMap<>(); in testAddingMetrics_singleDevice() local
112 mCollector.testRunEnded(0, runMetrics); in testAddingMetrics_singleDevice()
118 runMetrics in testAddingMetrics_singleDevice()
133 runMetrics in testAddingMetrics_singleDevice()
148 runMetrics in testAddingMetrics_singleDevice()
211 HashMap<String, Metric> runMetrics = new HashMap<>(); in testAddingMetrics_multiDevice() local
214 mCollector.testRunEnded(0, runMetrics); in testAddingMetrics_multiDevice()
218 runMetrics in testAddingMetrics_multiDevice()
233 runMetrics in testAddingMetrics_multiDevice()
246 runMetrics in testAddingMetrics_multiDevice()
[all …]
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/metric/
DLoopSummary.java40 HashMap<String, Metric> runMetrics) { in parseRunMetrics() argument
42 getMetricLongValue(context, type, runIndex, "frame_count", runMetrics), in parseRunMetrics()
43 getMetricLongValue(context, type, runIndex, "duration", runMetrics), in parseRunMetrics()
44 getMetricDoubleValue(context, type, runIndex, "jank_rate", runMetrics), in parseRunMetrics()
45 getMetricLongValue(context, type, runIndex, "min_frametime", runMetrics), in parseRunMetrics()
46 getMetricLongValue(context, type, runIndex, "max_frametime", runMetrics), in parseRunMetrics()
47 getMetricDoubleValue(context, type, runIndex, "frametime", runMetrics), in parseRunMetrics()
48 getMetricLongValue(context, type, runIndex, "90th_percentile", runMetrics), in parseRunMetrics()
49 getMetricLongValue(context, type, runIndex, "95th_percentile", runMetrics), in parseRunMetrics()
50 getMetricLongValue(context, type, runIndex, "99th_percentile", runMetrics), in parseRunMetrics()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DJavaCodeCoverageListenerTest.java123 HashMap<String, Metric> runMetrics = createMetricsWithCoverageMeasurement(DEVICE_PATH); in testRunEnded_rootEnabled_logsCoverageMeasurement() local
130 mCodeCoverageListener.testRunEnded(ELAPSED_TIME, runMetrics); in testRunEnded_rootEnabled_logsCoverageMeasurement()
156 HashMap<String, Metric> runMetrics = createMetricsWithCoverageMeasurement(DEVICE_PATH); in testFailure_unableToPullFile() local
163 mCodeCoverageListener.testRunEnded(ELAPSED_TIME, runMetrics); in testFailure_unableToPullFile()
175 HashMap<String, Metric> runMetrics = createMetricsWithCoverageMeasurement(DEVICE_PATH); in testRunEnded_rootDisabled_enablesRootBeforePullingFiles() local
181 mCodeCoverageListener.testRunEnded(ELAPSED_TIME, runMetrics); in testRunEnded_rootDisabled_enablesRootBeforePullingFiles()
191 HashMap<String, Metric> runMetrics = createMetricsWithCoverageMeasurement(DEVICE_PATH); in testRunEnded_rootDisabled_throwsIfCannotEnableRoot() local
198 mCodeCoverageListener.testRunEnded(ELAPSED_TIME, runMetrics); in testRunEnded_rootDisabled_throwsIfCannotEnableRoot()
206 HashMap<String, Metric> runMetrics = createMetricsWithCoverageMeasurement(DEVICE_PATH); in testRunEnded_rootDisabled_disablesRootAfterPullingFiles() local
212 mCodeCoverageListener.testRunEnded(ELAPSED_TIME, runMetrics); in testRunEnded_rootDisabled_disablesRootAfterPullingFiles()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/postprocessor/
DBasePostProcessor.java161 public final void testRunEnded(long elapsedTime, Map<String, String> runMetrics) { in testRunEnded() argument
162 testRunEnded(elapsedTime, TfMetricProtoUtil.upgradeConvert(runMetrics)); in testRunEnded()
166 public final void testRunEnded(long elapsedTime, HashMap<String, Metric> runMetrics) { in testRunEnded() argument
168 HashMap<String, Metric> rawValues = getRawMetricsOnly(runMetrics); in testRunEnded()
172 addProcessedMetricsToExistingMetrics(postprocessedResults, runMetrics); in testRunEnded()
176 addProcessedMetricsToExistingMetrics(aggregateResults, runMetrics); in testRunEnded()
187 mForwarder.testRunEnded(elapsedTime, runMetrics); in testRunEnded()
329 private HashMap<String, Metric> getRawMetricsOnly(HashMap<String, Metric> runMetrics) { in getRawMetricsOnly() argument
331 for (Entry<String, Metric> entry : runMetrics.entrySet()) { in getRawMetricsOnly()
/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/
DAggregatePostProcessorTest.java450 HashMap<String, Metric> runMetrics = new HashMap<String, Metric>(); in testSuccessfullProcessRunMetrics() local
454 runMetrics.put(key, currentRunMetric); in testSuccessfullProcessRunMetrics()
456 mProcessor.processRunMetricsAndLogs(runMetrics, new HashMap<>()); in testSuccessfullProcessRunMetrics()
489 HashMap<String, Metric> runMetrics = new HashMap<String, Metric>(); in testSingleValueProcessRunMetrics() local
493 runMetrics.put(key, currentRunMetric); in testSingleValueProcessRunMetrics()
495 mProcessor.processRunMetricsAndLogs(runMetrics, new HashMap<>()); in testSingleValueProcessRunMetrics()
525 HashMap<String, Metric> runMetrics = new HashMap<String, Metric>(); in testNoDoubleProcessRunMetrics() local
529 runMetrics.put(key, currentRunMetric); in testNoDoubleProcessRunMetrics()
531 mProcessor.processRunMetricsAndLogs(runMetrics, new HashMap<>()); in testNoDoubleProcessRunMetrics()
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/
DTestRunResult.java365 public void testRunEnded(long elapsedTime, Map<String, String> runMetrics) { in testRunEnded() argument
367 for (Map.Entry<String, String> entry : runMetrics.entrySet()) { in testRunEnded()
373 mRunMetrics.putAll(runMetrics); in testRunEnded()
376 mRunProtoMetrics.putAll(TfMetricProtoUtil.upgradeConvert(runMetrics)); in testRunEnded()
383 public void testRunEnded(long elapsedTime, HashMap<String, Metric> runMetrics) { in testRunEnded() argument
385 testRunEnded(elapsedTime, TfMetricProtoUtil.compatibleConvert(runMetrics)); in testRunEnded()
388 mRunProtoMetrics.putAll(runMetrics); in testRunEnded()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DJavaCodeCoverageListener.java94 public void testRunEnded(long elapsedTime, HashMap<String, Metric> runMetrics) { in testRunEnded() argument
110 super.testRunEnded(elapsedTime, runMetrics); in testRunEnded()
114 Metric devicePathMetric = runMetrics.get(COVERAGE_MEASUREMENT_KEY); in testRunEnded()
118 super.testRunEnded(elapsedTime, runMetrics); in testRunEnded()
125 super.testRunEnded(elapsedTime, runMetrics); in testRunEnded()
146 super.testRunEnded(elapsedTime, runMetrics); in testRunEnded()
/tools/tradefederation/contrib/tests/src/com/android/regression/tests/
DMetricsXmlParserTest.java134 Map<String, String> runMetrics = new HashMap<>(); in testParse() local
135 runMetrics.put("metric3", "8.8"); in testParse()
136 mResultReporter.testRunEnded(3, TfMetricProtoUtil.upgradeConvert(runMetrics)); in testParse()
169 Map<String, String> runMetrics = new HashMap<>(); in testParseBlacklist() local
170 runMetrics.put("metric3", "8.8"); in testParseBlacklist()
171 mResultReporter.testRunEnded(3, TfMetricProtoUtil.upgradeConvert(runMetrics)); in testParseBlacklist()
/tools/tradefederation/core/src/com/android/tradefed/util/
DSubprocessEventHelper.java224 public TestRunEndedEventInfo(Long time, Map<String, String> runMetrics) { in TestRunEndedEventInfo() argument
226 mRunMetrics = runMetrics; in TestRunEndedEventInfo()
468 Map<String, String> runMetrics) { in TestEndedEventInfo() argument
470 mRunMetrics = runMetrics; in TestEndedEventInfo()
484 String className, String testName, Long endTime, Map<String, String> runMetrics) { in TestEndedEventInfo() argument
487 mRunMetrics = runMetrics; in TestEndedEventInfo()
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/
DGetLastCommandResultOp.java128 Map<String, String> runMetrics = commandResult.getRunMetrics(); in packResponseIntoJson() local
129 if (runMetrics != null && runMetrics.size() > 0) { in packResponseIntoJson()
131 for (Map.Entry<String, String> entry : runMetrics.entrySet()) { in packResponseIntoJson()
/tools/tradefederation/contrib/src/com/android/media/tests/
DCameraTestBase.java278 long elapsedTime, Map<String, String> runMetrics); in handleTestRunEnded() argument
323 public void testRunEnded(long elapsedTime, HashMap<String, Metric> runMetrics) { in testRunEnded() argument
324 super.testRunEnded(elapsedTime, runMetrics); in testRunEnded()
326 TfMetricProtoUtil.compatibleConvert(runMetrics)); in testRunEnded()
435 Map<String, String> runMetrics) { in handleTestRunEnded() argument
DCameraStressTest.java266 Map<String, String> runMetrics = new HashMap<>(); in parseOutputFile() local
306 runMetrics.put(key, Integer.toString(value)); in parseOutputFile()
327 runMetrics.put(key, Integer.toString(value)); in parseOutputFile()
331 reportMetrics(listener, test, runMetrics); in parseOutputFile()
DMediaPlayerStressTest.java159 Map<String, String> runMetrics = new HashMap<>(); in parseOutputFile() local
188 runMetrics.put(key, capture.get(0).get(0)); in parseOutputFile()
190 reportMetrics(listener, runMetrics); in parseOutputFile()
DMediaStressTest.java130 Map<String, String> runMetrics = new HashMap<>(); in parseOutputFile() local
165 runMetrics.put(key, Integer.toString(value)); in parseOutputFile()
168 reportMetrics(listener, runMetrics); in parseOutputFile()
DVideoEditingPerformanceTest.java203 Map<String, String> runMetrics = new HashMap<>(); in parseOutputFile() local
232 runMetrics.put(key, capture.get(0).get(0)); in parseOutputFile()
234 reportMetrics(listener, runMetrics); in parseOutputFile()
DMediaMemoryTest.java223 Map<String, String> runMetrics = new HashMap<>(); in parseOutputFile() local
249 runMetrics.put(key, Integer.toString(result)); in parseOutputFile()
258 reportMetrics(listener, runMetrics); in parseOutputFile()
DCameraLatencyTest.java231 Map<String, String> runMetrics = new HashMap<>(); in parseOutputFile() local
261 runMetrics.put(key, capture.get(0).get(0)); in parseOutputFile()
264 reportMetrics(listener, test, runMetrics); in parseOutputFile()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DTestRunResultTest.java413 Map<String, String> runMetrics = result.getRunMetrics(); in testMergeRetriedRunResults_CheckMergeMapAttributes() local
414 assertTrue(runMetrics.containsKey("metric1")); in testMergeRetriedRunResults_CheckMergeMapAttributes()
415 assertTrue(runMetrics.get("metric1").equals("5")); in testMergeRetriedRunResults_CheckMergeMapAttributes()
416 assertTrue(runMetrics.containsKey("metric2")); in testMergeRetriedRunResults_CheckMergeMapAttributes()
417 assertTrue(runMetrics.get("metric2").equals("5000")); in testMergeRetriedRunResults_CheckMergeMapAttributes()
DJsonHttpTestResultReporterTest.java120 Map<String, String> runMetrics = new HashMap<String, String>(1); in injectTestRun() local
121 runMetrics.put("run_metric", metricValue); in injectTestRun()
132 target.testRunEnded(0, TfMetricProtoUtil.upgradeConvert(runMetrics)); in injectTestRun()
/tools/tradefederation/contrib/src/com/android/wireless/tests/
DWifiStressTest.java303 Map<String, String> runMetrics = new HashMap<>(); in parseOutputFile() local
327 runMetrics.put(key, Integer.toString(quality)); in parseOutputFile()
329 runMetrics.put(key, capture.get(0).get(0)); in parseOutputFile()
352 reportMetrics(test.mTestMetricsName, listener, runMetrics); in parseOutputFile()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DTfTestLauncher.java336 HashMap<String, Metric> runMetrics = new HashMap<>(); in reportMetrics() local
337 runMetrics.put( in reportMetrics()
339 listener.testEnded(tid, runMetrics); in reportMetrics()
340 listener.testRunEnded(0L, runMetrics); in reportMetrics()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DBaseDeviceMetricCollector.java273 public final void testRunEnded(long elapsedTime, HashMap<String, Metric> runMetrics) { in testRunEnded() argument
275 onTestRunEnd(mRunData, runMetrics); in testRunEnded()
276 mRunData.addToMetrics(runMetrics); in testRunEnded()
281 mForwarder.testRunEnded(elapsedTime, runMetrics); in testRunEnded()
/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/result/
DITestLifeCycleReceiver.java105 public default void testRunEnded(long elapsedTimeMillis, Map<String, String> runMetrics) { in testRunEnded() argument
106 testRunEnded(elapsedTimeMillis, TfMetricProtoUtil.upgradeConvert(runMetrics)); in testRunEnded()
116 public default void testRunEnded(long elapsedTimeMillis, HashMap<String, Metric> runMetrics) {} in testRunEnded() argument
/tools/tradefederation/core/src/com/android/tradefed/result/
DBugreportCollector.java463 public void testRunEnded(long elapsedTime, HashMap<String, Metric> runMetrics) { in testRunEnded() argument
464 mListener.testRunEnded(elapsedTime, runMetrics); in testRunEnded()
465 mCollector.testRunEnded(elapsedTime, runMetrics); in testRunEnded()

123