Home
last modified time | relevance | path

Searched refs:metric (Results 1 – 25 of 163) sorted by relevance

1234567

/tools/test/connectivity/acts/framework/tests/metrics/
Dcore_test.py42 metric = ProtoMetric(name = self.TEST_NAME, data=self.data)
43 self.assertEqual(metric.name, self.TEST_NAME)
44 self.assertEqual(metric.data, self.data)
50 metric = ProtoMetric(name=self.TEST_NAME, data=self.data)
53 metric.get_binary()
59 metric = ProtoMetric(name=self.TEST_NAME, data=self.data)
61 metric.get_ascii()
67 metric = ProtoMetric(name=self.TEST_NAME, data=self.data)
72 metric.get_descriptor_binary()
80 metric = ProtoMetric(name=self.TEST_NAME, data=self.data)
[all …]
/tools/test/connectivity/acts/framework/acts/metrics/
Dcore.py153 for metric in metrics:
154 self._publish_single(metric)
158 def _publish_single(self, metric): argument
173 self.write_binary(metric, output_path)
175 self.write_ascii(metric, output_path)
177 self.write_descriptor_binary(metric, output_path)
179 self.write_descriptor_ascii(metric, output_path)
181 def write_binary(self, metric, output_path): argument
189 output_path, metric.name, self.BINARY_EXTENSION)
190 dump_string_to_file(metric.get_binary(), filename, mode='wb')
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/bt/loggers/
Dbluetooth_metric_logger.py33 for metric in dir(proto):
34 if metric in dct:
35 if (isinstance(dct[metric], dict) and
36 isinstance(getattr(proto, metric), message.Message)):
37 recursive_assign(getattr(proto, metric), dct[metric])
39 setattr(proto, metric, dct[metric])
120 for metric in dir(pri_device_proto):
121 if metric in pri_config:
122 setattr(pri_device_proto, metric, pri_config[metric])
127 for metric in dir(conn_device_proto):
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DProcessMaxMemoryCollector.java16 package com.android.tradefed.device.metric;
135 Metric.Builder metric = Metric.newBuilder(); in onEnd() local
136 metric.setMeasurements( in onEnd()
140 metric.setUnit("kB").setType(DataType.RAW); in onEnd()
141 runData.addMetricForDevice(device, "PSS#" + values.getKey(), metric); in onEnd()
147 Metric.Builder metric = Metric.newBuilder(); in onEnd() local
148 metric.setMeasurements( in onEnd()
152 metric.setUnit("kB").setType(DataType.RAW); in onEnd()
153 runData.addMetricForDevice(device, "USS#" + values.getKey(), metric); in onEnd()
160 Metric.Builder metric = Metric.newBuilder(); in onEnd() local
[all …]
DTemperatureCollector.java16 package com.android.tradefed.device.metric;
130 Metric.Builder metric = Metric.newBuilder(); in onEnd() local
131 metric.setMeasurements( in onEnd()
133 metric.setUnit(CELCIUS_UNIT).setType(DataType.RAW); in onEnd()
134 runData.addMetricForDevice(device, "temperature", metric); in onEnd()
139 Metric.Builder metric = Metric.newBuilder(); in onEnd() local
140 metric.setMeasurements(Measurements.newBuilder().setSingleDouble(maxTemp).build()); in onEnd()
142 metric.setUnit(CELCIUS_UNIT).setType(DataType.PROCESSED); in onEnd()
143 runData.addMetricForDevice(device, "max_temperature", metric); in onEnd()
147 Metric.Builder metric = Metric.newBuilder(); in onEnd() local
[all …]
DAtraceRunMetricCollector.java17 package com.android.tradefed.device.metric;
165 String[] metric = line.split(METRIC_SEPARATOR); in aggregateMetrics() local
166 if (!resultAggregatorMap.containsKey(metric[0].trim())) { in aggregateMetrics()
168 resultStats.add(Double.parseDouble(metric[1].trim())); in aggregateMetrics()
169 resultAggregatorMap.put(metric[0].trim(), resultStats); in aggregateMetrics()
171 resultAggregatorMap.get(metric[0].trim()).add( in aggregateMetrics()
172 Double.parseDouble(metric[1].trim())); in aggregateMetrics()
DDeviceMetricData.java16 package com.android.tradefed.device.metric;
53 public void addMetric(String key, Metric.Builder metric) { in addMetric() argument
62 Metric m = metric.build(); in addMetric()
74 public void addMetricForDevice(ITestDevice device, String key, Metric.Builder metric) { in addMetricForDevice() argument
83 Metric m = metric.build(); in addMetricForDevice()
/tools/test/connectivity/acts/framework/tests/metrics/loggers/
Dblackbox_test.py239 metric = self.__get_only_arg(args_list[0])
240 self.assertEqual(metric.name, 'blackbox_my_metric')
241 self.assertEqual(metric.data.test_identifier, 'MyTest#test_case')
242 self.assertEqual(metric.data.metric_key, 'MyTest#test_case.my_metric')
243 self.assertEqual(metric.data.metric_value, result)
265 {metric.name for metric in metrics},
268 {metric.data.test_identifier for metric in metrics},
271 {metric.data.metric_key for metric in metrics},
274 {metric.data.metric_value for metric in metrics},
295 metric = self.__get_only_arg(args_list[0])
[all …]
/tools/test/connectivity/acts/framework/acts/libs/metrics/
Dbindings.py6 def _metric_binding_base(metric, binding_name, bind_to_arg=True, argument
35 new_kwargs[binding_name] = metric
47 metric.setup(instance, inner, binding_name)
55 metric.finish()
60 def metric_binding(metric, binding_name, bind_to_arg=True): argument
72 return _metric_binding_base(metric, binding_name, bind_to_arg=bind_to_arg)
75 def auto_passive_metric(metric, binding_name, bind_to_arg=True): argument
89 metric.start()
92 metric.stop()
94 return _metric_binding_base(metric, binding_name, bind_to_arg=bind_to_arg,
/tools/test/connectivity/acts/framework/tests/libs/metrics/
Dmetric_binding_test.py20 from acts.libs.metrics.metric import Metric
35 metric = MockMetric()
38 @metric_binding(metric, 'binding', bind_to_arg=False)
49 self.assertEqual(metric.test.__class__.__name__, TestTest.__name__)
50 self.assertEqual(metric.testcase.__name__, TestTest.test.__name__)
51 self.assertEqual(metric.binding_name, 'binding')
55 metric = MockMetric()
61 @metric_binding(metric, 'binding', bind_to_arg=True)
72 self.assertEqual(test.grabbed_metric, metric)
Dauto_passive_metric_binding_test.py20 from acts.libs.metrics.metric import PassiveMetric
48 metric = MockMetric()
51 @auto_passive_metric(metric, 'binding', bind_to_arg=False)
62 self.assertTrue(metric.started)
63 self.assertTrue(metric.stopped)
/tools/tradefederation/core/tests/src/com/android/tradefed/
DUnitTests.java83 import com.android.tradefed.device.metric.AtraceCollectorTest;
84 import com.android.tradefed.device.metric.AtraceRunMetricCollectorTest;
85 import com.android.tradefed.device.metric.AutoLogCollectorTest;
86 import com.android.tradefed.device.metric.BaseDeviceMetricCollectorTest;
87 import com.android.tradefed.device.metric.BuddyInfoMetricCollectorTest;
88 import com.android.tradefed.device.metric.BugreportzMetricCollectorTest;
89 import com.android.tradefed.device.metric.BugreportzOnFailureCollectorTest;
90 import com.android.tradefed.device.metric.DebugHostLogOnFailureCollectorTest;
91 import com.android.tradefed.device.metric.DeviceMetricDataTest;
92 import com.android.tradefed.device.metric.DumpHeapCollectorTest;
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DJavaCodeCoverageListenerTest.java109 Map<String, String> metric = new HashMap<>(); in test() local
110 metric.put("coverageFilePath", DEVICE_PATH); in test()
111 mCodeCoverageListener.testRunEnded(ELAPSED_TIME, TfMetricProtoUtil.upgradeConvert(metric)); in test()
141 Map<String, String> metric = new HashMap<>(); in testFailure_unableToPullFile() local
142 metric.put("coverageFilePath", DEVICE_PATH); in testFailure_unableToPullFile()
144 ELAPSED_TIME, TfMetricProtoUtil.upgradeConvert(metric)); in testFailure_unableToPullFile()
175 Map<String, String> metric = new HashMap<>(); in testMerge_producesSingleMeasurement() local
176 metric.put("coverageFilePath", DEVICE_PATH); in testMerge_producesSingleMeasurement()
182 mCodeCoverageListener.testRunEnded(ELAPSED_TIME, TfMetricProtoUtil.upgradeConvert(metric)); in testMerge_producesSingleMeasurement()
184 mCodeCoverageListener.testRunEnded(ELAPSED_TIME, TfMetricProtoUtil.upgradeConvert(metric)); in testMerge_producesSingleMeasurement()
DNativeCodeCoverageListenerTest.java117 Map<String, String> metric = new HashMap<>(); in test_logsCoverageZip() local
118 mCodeCoverageListener.testRunEnded(ELAPSED_TIME, TfMetricProtoUtil.upgradeConvert(metric)); in test_logsCoverageZip()
147 Map<String, String> metric = new HashMap<>(); in testNoCoverageFiles_logsEmptyZip() local
148 mCodeCoverageListener.testRunEnded(ELAPSED_TIME, TfMetricProtoUtil.upgradeConvert(metric)); in testNoCoverageFiles_logsEmptyZip()
174 Map<String, String> metric = new HashMap<>(); in testFailure_unableToPullFile() local
177 ELAPSED_TIME, TfMetricProtoUtil.upgradeConvert(metric)); in testFailure_unableToPullFile()
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/metric/
DGameQualificationFpsCollector.java16 package com.android.game.qualification.metric;
18 import static com.android.game.qualification.metric.MetricSummary.TimeType.PRESENT;
19 import static com.android.game.qualification.metric.MetricSummary.TimeType.READY;
24 import com.android.tradefed.device.metric.DeviceMetricData;
213 for(GameQualificationMetric metric : mElapsedTimes) in processTimestampsSlice()
215 long presentTime = metric.getActualPresentTime(); in processTimestampsSlice()
216 long readyTime = metric.getFrameReadyTime(); in processTimestampsSlice()
DLoopSummary.java1 package com.android.game.qualification.metric;
5 import com.android.tradefed.device.metric.DeviceMetricData;
291 String metric, in getMetricDoubleValue() argument
294 getActualMetricKey(context, type, runIndex, metric)); in getMetricDoubleValue()
305 String metric, in getMetricLongValue() argument
308 getActualMetricKey(context, type, runIndex, metric)); in getMetricLongValue()
/tools/test/connectivity/tools/lab/reporters/
Dlogger_reporter.py46 for metric in metric_responses:
47 extra['metric_name'] = metric
48 for response in metric_responses[metric]:
50 extra['response_val'] = metric_responses[metric][response]
/tools/tradefederation/contrib/src/com/android/media/tests/
DCameraPerformanceTest.java124 for (Map.Entry<String, String> metric : testMetrics.entrySet()) { in handleMetricsOnTestEnded()
125 getAggregatedMetrics().put(test.getTestName(), metric.getValue()); in handleMetricsOnTestEnded()
158 for (Map.Entry<String, String> metric : metrics.entrySet()) { in parseResult()
159 String testMethod = metric.getKey(); in parseResult()
160 String testResult = metric.getValue(); in parseResult()
284 for (CtsMetric metric : metrics) { in filter()
287 if (metric.matches(testMethod, kpiName)) { in filter()
288 filtered.put(metric.schemaKey, metric.value); in filter()
DCamera2LatencyTest.java82 for (Map.Entry<String, String> metric : testMetrics.entrySet()) { in parseResults()
83 Matcher matcher = STATS_REGEX.matcher(metric.getValue()); in parseResults()
85 String keyName = String.format("%s_%s", testName, metric.getKey()); in parseResults()
88 CLog.w(String.format("Stats not in correct format: %s", metric.getValue())); in parseResults()
DCameraShotLatencyTest.java79 for (Map.Entry<String, String> metric : testMetrics.entrySet()) { in parseResults()
80 Matcher matcher = STATS_REGEX.matcher(metric.getValue()); in parseResults()
83 String keyName = String.format("%s_%s", testName, metric.getKey()); in parseResults()
86 CLog.w(String.format("Stats not in correct format: %s", metric.getValue())); in parseResults()
DCameraBurstStartupTest.java70 for (Map.Entry<String, String> metric : testMetrics.entrySet()) { in parseResults()
71 Matcher matcher = STATS_REGEX.matcher(metric.getValue()); in parseResults()
75 String keyName = String.format("%s_%s", testName, metric.getKey()); in parseResults()
78 CLog.w(String.format("Stats not in correct format: %s", metric.getValue())); in parseResults()
/tools/test/graphicsbenchmark/performance_tests/hostside/test/com/android/game/qualification/metric/
DMetricSummaryTest.java16 package com.android.game.qualification.metric;
18 import static com.android.game.qualification.metric.MetricSummary.TimeType.PRESENT;
19 import static com.android.game.qualification.metric.MetricSummary.TimeType.READY;
25 import com.android.tradefed.device.metric.DeviceMetricData;
/tools/tradefederation/core/src/com/android/tradefed/postprocessor/
DAveragePostProcessor.java38 Metric metric = rawMetrics.get(key); in processRunMetrics() local
39 Measurements measure = metric.getMeasurements(); in processRunMetrics()
50 newMetrics.put(key + AVERAGE_KEY_TAG, createAvgMetric(avg, metric)); in processRunMetrics()
61 newMetrics.put(key + AVERAGE_KEY_TAG, createAvgMetric(avg, metric)); in processRunMetrics()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DInstalledInstrumentationsTest.java25 import com.android.tradefed.device.metric.CollectorHelper;
26 import com.android.tradefed.device.metric.IMetricCollector;
27 import com.android.tradefed.device.metric.IMetricCollectorReceiver;
376 Metric metric = in sendCoverage() local
381 coverageMetric.put(COVERAGE_TARGET_KEY, metric); in sendCoverage()
/tools/test/connectivity/tools/lab/
Drunner.py58 for metric in self.metric_list:
60 key_name = self.convert_to_snake(metric.__class__.__name__)[:-7]
61 responses[key_name] = metric.gather_metric()

1234567