Home
last modified time | relevance | path

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

1234

/tools/tradefederation/core/src/com/android/tradefed/device/metric/
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 …]
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 …]
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()
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()
DIMetricCollectorReceiver.java16 package com.android.tradefed.device.metric;
DMetricOption.java16 package com.android.tradefed.device.metric;
/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/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()
Dhealth_checker.py82 for (metric, analyzer) in self._analyzers:
85 if not analyzer.is_healthy(response_dict[metric]):
86 unhealthy_metrics.append(metric)
/tools/tradefederation/contrib/src/com/android/media/tests/
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()
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()
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()
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()
DCamera2FrameworkStressTest.java89 for (Map.Entry<String, String> metric : testMetrics.entrySet()) { in handleMetricsOnTestEnded()
90 getAggregatedMetrics().put(metric.getKey(), metric.getValue()); in handleMetricsOnTestEnded()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DCodeCoverageListenerTest.java95 Map<String, String> metric = new HashMap<>(); in test() local
96 metric.put("coverageFilePath", DEVICE_PATH); in test()
97 mCodeCoverageListener.testRunEnded(ELAPSED_TIME, TfMetricProtoUtil.upgradeConvert(metric)); in test()
127 Map<String, String> metric = new HashMap<>(); in testFailure_unableToPullFile() local
128 metric.put("coverageFilePath", DEVICE_PATH); in testFailure_unableToPullFile()
130 ELAPSED_TIME, TfMetricProtoUtil.upgradeConvert(metric)); in testFailure_unableToPullFile()
/tools/tradefederation/core/tests/src/com/android/tradefed/
DUnitTests.java69 import com.android.tradefed.device.metric.AtraceCollectorTest;
70 import com.android.tradefed.device.metric.AtraceRunMetricCollectorTest;
71 import com.android.tradefed.device.metric.BaseDeviceMetricCollectorTest;
72 import com.android.tradefed.device.metric.BuddyInfoMetricCollectorTest;
73 import com.android.tradefed.device.metric.BugreportzMetricCollectorTest;
74 import com.android.tradefed.device.metric.DeviceMetricDataTest;
75 import com.android.tradefed.device.metric.DumpHeapCollectorTest;
76 import com.android.tradefed.device.metric.FilePullerDeviceMetricCollectorTest;
77 import com.android.tradefed.device.metric.FilePullerLogCollectorTest;
78 import com.android.tradefed.device.metric.GraphicsStatsMetricCollectorTest;
[all …]
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DMetricTestCase.java59 public final void addTestMetric(String key, Metric metric) { in addTestMetric() argument
60 mMetrics.put(key, metric); in addTestMetric()
/tools/tradefederation/core/src/com/android/tradefed/util/hostmetric/
DEmailHostHealthAgent.java122 JSONObject metric = tmp.toJson(); in generateEmailBody() local
123 Iterator<?> i = metric.keys(); in generateEmailBody()
126 bodyBuilder.append(key).append(": ").append(metric.get(key)).append("\n"); in generateEmailBody()
/tools/test/connectivity/tools/lab/metrics/
Dcpu_metric.py17 from metrics.metric import Metric
Dname_metric.py17 from metrics.metric import Metric
Dtime_metric.py17 from metrics.metric import Metric
Dnum_users_metric.py17 from metrics.metric import Metric
Dtime_sync_metric.py17 from metrics.metric import Metric
Dsystem_load_metric.py17 from metrics.metric import Metric
Duptime_metric.py17 from metrics.metric import Metric

1234