/tools/test/connectivity/tools/lab/ |
D | main.py | 27 from metrics.adb_hash_metric import AdbHashMetric 28 from metrics.cpu_metric import CpuMetric 29 from metrics.disk_metric import DiskMetric 30 from metrics.name_metric import NameMetric 31 from metrics.network_metric import NetworkMetric 32 from metrics.num_users_metric import NumUsersMetric 33 from metrics.process_time_metric import ProcessTimeMetric 34 from metrics.ram_metric import RamMetric 35 from metrics.read_metric import ReadMetric 36 from metrics.system_load_metric import SystemLoadMetric [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/proto/ |
D | TfMetricProtoUtilTest.java | 20 import com.android.tradefed.metrics.proto.MetricMeasurement.DataType; 21 import com.android.tradefed.metrics.proto.MetricMeasurement.DoubleValues; 22 import com.android.tradefed.metrics.proto.MetricMeasurement.Measurements; 23 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 24 import com.android.tradefed.metrics.proto.MetricMeasurement.StringValues; 43 Map<String, Metric> metrics = new HashMap<>(); in testCompatibleConvert() local 46 metrics.put("key1", createMetric(m1)); in testCompatibleConvert() 50 metrics.put("key2", createMetric(m2)); in testCompatibleConvert() 54 metrics.put("key3", createMetric(m3)); in testCompatibleConvert() 61 metrics.put("key4", createMetric(m4)); in testCompatibleConvert() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | TextResultReporter.java | 21 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 59 public void testEnded(TestDescription testId, HashMap<String, Metric> metrics) { in testEnded() argument 60 super.testEnded(testId, metrics); in testEnded() 61 if (!metrics.isEmpty()) { in testEnded() 63 printer.getWriter().format("\n%s metrics: %s\n", testId, metrics); in testEnded() 69 public void testRunEnded(long elapsedTime, HashMap<String, Metric> metrics) { in testRunEnded() argument 70 super.testRunEnded(elapsedTime, metrics); in testRunEnded() 71 if (!metrics.isEmpty()) { in testRunEnded() 73 printer.getWriter().format("\nMetrics: %s\n", metrics); in testRunEnded()
|
D | ConsoleResultReporter.java | 117 Map<String, String> metrics = testRunResult.getRunMetrics(); in getTestRunSummary() local 118 if (metrics != null && !metrics.isEmpty()) { in getTestRunSummary() 119 List<String> metricKeys = new ArrayList<String>(metrics.keySet()); in getTestRunSummary() 122 sb.append(String.format(" %s: %s\n", metricKey, metrics.get(metricKey))); in getTestRunSummary() 144 Map<String, String> metrics = testResult.getMetrics(); in getTestSummary() local 145 if (metrics != null && !metrics.isEmpty()) { in getTestSummary() 146 List<String> metricKeys = new ArrayList<String>(metrics.keySet()); in getTestSummary() 149 sb.append(String.format(" %s: %s\n", metricKey, metrics.get(metricKey))); in getTestSummary()
|
D | TestResult.java | 19 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 69 public void setMetrics(Map<String, String> metrics) { in setMetrics() argument 70 mMetrics = metrics; in setMetrics() 74 public void setProtoMetrics(HashMap<String, Metric> metrics) { in setProtoMetrics() argument 75 mProtoMetrics = metrics; in setProtoMetrics()
|
D | LegacySubprocessResultsReporter.java | 46 public void testEnded(TestIdentifier testId, Map<String, String> metrics) { in testEnded() argument 47 testEnded(testId, System.currentTimeMillis(), metrics); in testEnded() 51 public void testEnded(TestIdentifier testId, long endTime, Map<String, String> metrics) { in testEnded() argument 54 testId.getClassName(), testId.getTestName(), endTime, metrics); in testEnded()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | ScheduledDeviceMetricCollectorTest.java | 25 import com.android.tradefed.metrics.proto.MetricMeasurement.Measurements; 26 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 81 HashMap<String, Metric> metrics = new HashMap<>(); in testSetupAndPeriodicRunSingleDevice() local 87 mBase.testRunEnded(0l, metrics); in testSetupAndPeriodicRunSingleDevice() 91 assertTrue(metrics.containsKey("key1")); in testSetupAndPeriodicRunSingleDevice() 92 assertTrue(metrics.containsKey("key2")); in testSetupAndPeriodicRunSingleDevice() 93 assertTrue(metrics.containsKey("key3")); in testSetupAndPeriodicRunSingleDevice() 110 HashMap<String, Metric> metrics = new HashMap<>(); in testSetupAndPeriodicRunMultipleDevices() local 116 mBase.testRunEnded(0l, metrics); in testSetupAndPeriodicRunMultipleDevices() 121 assertTrue(metrics.keySet().stream().anyMatch(key -> key.startsWith("{test device 1}"))); in testSetupAndPeriodicRunMultipleDevices() [all …]
|
D | FilePullerLogCollectorTest.java | 25 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 70 Map<String, String> metrics = new HashMap<>(); in testPullAndLog() local 71 metrics.put("log1", "/data/local/tmp/log1.txt"); in testPullAndLog() 72 metrics.put("another_metrics", "57"); in testPullAndLog() 86 listener.testEnded(test, 50L, TfMetricProtoUtil.upgradeConvert(metrics)); in testPullAndLog() 106 Map<String, String> metrics = new HashMap<>(); in testSkipTestCollection() local 107 metrics.put("log1", "/data/local/tmp/log1.txt"); in testSkipTestCollection() 108 metrics.put("another_metrics", "57"); in testSkipTestCollection() 116 listener.testEnded(test, 50L, TfMetricProtoUtil.upgradeConvert(metrics)); in testSkipTestCollection()
|
D | ScheduleMultipleDeviceMetricCollectorTest.java | 26 import com.android.tradefed.metrics.proto.MetricMeasurement.Measurements; 27 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 160 HashMap<String, Metric> metrics = new HashMap<>(); in testMultipleMetricCollector_success() local 166 mMultipleMetricCollector.onTestRunEnd(runData, metrics); in testMultipleMetricCollector_success() 182 HashMap<String, Metric> metrics = new HashMap<>(); in testMultipleMetricCollector_noFailureEvenIfNoCollectorRequested() local 191 mMultipleMetricCollector.onTestRunEnd(runData, metrics); in testMultipleMetricCollector_noFailureEvenIfNoCollectorRequested() 226 HashMap<String, Metric> metrics = new HashMap<>(); in testMultipleMetricCollector_collectorNotFound() local 235 mMultipleMetricCollector.onTestRunEnd(runData, metrics); in testMultipleMetricCollector_collectorNotFound()
|
/tools/tradefederation/core/src/com/android/tradefed/util/proto/ |
D | TfMetricProtoUtil.java | 19 import com.android.tradefed.metrics.proto.MetricMeasurement.DataType; 20 import com.android.tradefed.metrics.proto.MetricMeasurement.Directionality; 21 import com.android.tradefed.metrics.proto.MetricMeasurement.Measurements; 22 import com.android.tradefed.metrics.proto.MetricMeasurement.Measurements.MeasurementCase; 23 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 24 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric.Builder; 73 public static HashMap<String, Metric> upgradeConvert(Map<String, String> metrics) { in upgradeConvert() argument 75 for (String key : metrics.keySet()) { in upgradeConvert() 76 newFormat.put(key, stringToMetric(metrics.get(key))); in upgradeConvert()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | MetricsXmlParser.java | 75 public MetricsXmlHandler(Metrics metrics, Set<String> blacklistMetrics) { in MetricsXmlHandler() argument 76 mMetrics = metrics; in MetricsXmlHandler() 136 Metrics metrics = new Metrics(strictMode); in parse() local 139 parse(metrics, blacklistMetrics, is); in parse() 144 metrics.validate(metricXmlFiles.size()); in parse() 145 return metrics; in parse() 149 public static Metrics parse(Metrics metrics, Set<String> blacklistMetrics, InputStream is) in parse() argument 155 parser.parse(is, new MetricsXmlHandler(metrics, blacklistMetrics)); in parse() 156 return metrics; in parse()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | VideoMultimeterTest.java | 273 Map<String, String> metrics, String keyprefix, float fps, boolean lipsync) { in getResult() argument 285 metrics.put(keyprefix + "frame_captured", nrOfDataPointsStr); in getResult() 301 return parseResult(metrics, nrOfDataPoints, allData, keyprefix, fps, lipsync); in getResult() 319 Map<String,String> metrics) throws DeviceNotAvailableException { in runMultimeterTest() argument 327 metrics = getResult(listener, metrics, keyPrefix, fps, true); in runMultimeterTest() 344 Map<String, String> metrics = new HashMap<>(); in run() local 347 runMultimeterTest(listener, metrics); in run() 351 listener.testEnded(testId, TfMetricProtoUtil.upgradeConvert(metrics)); in run() 352 listener.testRunEnded(durationMs, TfMetricProtoUtil.upgradeConvert(metrics)); in run() 361 private Map<String, String> parseResult(Map<String, String> metrics, in parseResult() argument [all …]
|
D | CameraShotToShotLatencyTest.java | 78 Map<String, String> metrics = parseOutputFile(); in run() local 79 reportMetrics(bugListener, TEST_RU, metrics); in run() 123 Map<String, String> metrics = new HashMap<String, String>(); in parseOutputFile() local 142 metrics.put(LATENCY_KEY_MEAN, m.group(3)); in parseOutputFile() 149 metrics.put(LATENCY_KEY_SD, m.group(3)); in parseOutputFile() 166 return metrics; in parseOutputFile() 176 Map<String, String> metrics) { in reportMetrics() argument 181 CLog.d(String.format("About to report metrics: %s", metrics)); in reportMetrics() 183 listener.testRunEnded(0, TfMetricProtoUtil.upgradeConvert(metrics)); in reportMetrics()
|
D | PanoramaBenchMarkTest.java | 69 Map<String, String> metrics = new HashMap<String, String>(); in run() local 75 metrics.put(PANORAMA_TEST_KEY, m.group(2)); in run() 82 reportMetrics(listener, TEST_TAG, metrics); in run() 121 Map<String, String> metrics) { in reportMetrics() argument 126 CLog.d(String.format("About to report metrics: %s", metrics)); in reportMetrics() 128 listener.testRunEnded(0, TfMetricProtoUtil.upgradeConvert(metrics)); in reportMetrics()
|
D | CameraSettingsTest.java | 98 Map<String, String> metrics = parseOutputFile(); in run() local 99 reportMetrics(bugListener, TEST_RU, metrics); in run() 147 Map<String, String> metrics = new HashMap<String, String>(); in parseOutputFile() local 196 metrics.put(key, String.format("%d", actualCount)); in parseOutputFile() 203 return metrics; in parseOutputFile() 214 Map<String, String> metrics) { in reportMetrics() argument 219 CLog.d(String.format("About to report metrics: %s", metrics)); in reportMetrics() 221 listener.testRunEnded(0, TfMetricProtoUtil.upgradeConvert(metrics)); in reportMetrics()
|
D | VideoMultimeterRunner.java | 72 Map<String, String> metrics = new HashMap<String, String>(); in run() local 84 runMultimeterTest(listener, metrics); in run() 93 listener.testEnded(testId, TfMetricProtoUtil.upgradeConvert(metrics)); in run() 95 listener.testRunEnded(durationMs, TfMetricProtoUtil.upgradeConvert(metrics)); in run()
|
D | AudioJitterTest.java | 99 Map<String, String> metrics = new HashMap<String, String>(); in run() local 115 metrics = jitterResult; in run() 124 listener.testEnded(testId, TfMetricProtoUtil.upgradeConvert(metrics)); in run() 128 listener.testEnded(testId, TfMetricProtoUtil.upgradeConvert(metrics)); in run() 129 listener.testRunEnded(durationMs, TfMetricProtoUtil.upgradeConvert(metrics)); in run()
|
/tools/tradefederation/core/prod-tests/src/com/android/performance/tests/ |
D | EmmcPerformanceTest.java | 23 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 123 Map<String, String> metrics = new HashMap<String, String>(); in run() local 125 runSequentialRead(mIterations, listener, metrics); in run() 126 runSequentialWrite(mIterations, listener, metrics); in run() 131 CLog.d("Metrics: %s", metrics.toString()); in run() 134 TfMetricProtoUtil.upgradeConvert(metrics)); in run() 144 Map<String, String> metrics) throws DeviceNotAvailableException { in runSequentialRead() argument 147 runTest(SEQUENTIAL_READ_KEY, command, TestType.DD, true, iterations, listener, metrics); in runSequentialRead() 154 Map<String, String> metrics) throws DeviceNotAvailableException { in runSequentialWrite() argument 157 runTest(SEQUENTIAL_WRITE_KEY, command, TestType.DD, false, iterations, listener, metrics); in runSequentialWrite() [all …]
|
D | AppInstallTest.java | 89 Map<String, String> metrics = new HashMap<String, String> (); in run() local 99 metrics.put(fileName, installTime); in run() 102 reportMetrics(listener, mTestLabel, metrics); in run() 144 Map<String, String> metrics) { in reportMetrics() argument 146 CLog.d("About to report metrics: %s", metrics); in reportMetrics() 148 listener.testRunEnded(0, TfMetricProtoUtil.upgradeConvert(metrics)); in reportMetrics()
|
D | VellamoBenchmark.java | 20 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 79 Map<String, String> metrics = new HashMap<String, String>(); in run() local 134 metrics.put(results[INDEX_NAME], results[INDEX_SCORE]); in run() 160 metrics.put("total", Double.toString(sumScore)); in run() 163 listener.testRunEnded(durationMs, TfMetricProtoUtil.upgradeConvert(metrics)); in run()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | DeviceTestResult.java | 19 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 103 HashMap<String, Metric> metrics = new HashMap<>(); in endTest() local 106 metrics.putAll(metricTest.mMetrics); in endTest() 125 if (!metrics.isEmpty() && each instanceof JUnitToInvocationResultForwarder) { in endTest() 126 ((JUnitToInvocationResultForwarder) each).endTest(test, metrics); in endTest()
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | DeviceMetricData.java | 20 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 94 public void addToMetrics(HashMap<String, Metric> metrics) { in addToMetrics() argument 95 Preconditions.checkNotNull(metrics); in addToMetrics() 97 metrics.putAll(mCurrentMetrics); in addToMetrics()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | ConsoleResultReporterTest.java | 19 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 54 Map<String, String> metrics = new HashMap<>(); in testGetInvocationSummary_test_run_metrics() local 55 metrics.put("key2", "value2"); in testGetInvocationSummary_test_run_metrics() 56 metrics.put("key1", "value1"); in testGetInvocationSummary_test_run_metrics() 57 reporter.testRunEnded(0, TfMetricProtoUtil.upgradeConvert(metrics)); in testGetInvocationSummary_test_run_metrics() 77 Map<String, String> metrics = new HashMap<>(); in testGetInvocationSummary_test_metrics() local 78 metrics.put("key2", "value2"); in testGetInvocationSummary_test_metrics() 79 metrics.put("key1", "value1"); in testGetInvocationSummary_test_metrics() 80 reporter.testEnded(testId, TfMetricProtoUtil.upgradeConvert(metrics)); in testGetInvocationSummary_test_metrics()
|
/tools/test/connectivity/tools/lab/tests/ |
D | main_test.py | 23 from metrics.usb_metric import UsbMetric 24 from metrics.verify_metric import VerifyMetric 25 from metrics.adb_hash_metric import AdbHashMetric
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | DeviceTestSuiteTest.java | 21 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 68 Map<String, String> metrics = new HashMap<>(); in testRun_suite() local 69 metrics.put("key1", "metric1"); in testRun_suite() 70 listener.testEnded(test1, TfMetricProtoUtil.upgradeConvert(metrics)); in testRun_suite()
|