/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | TemperatureCollector.java | 16 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 …]
|
D | ProcessMaxMemoryCollector.java | 16 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 …]
|
D | DeviceMetricData.java | 16 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()
|
D | AtraceRunMetricCollector.java | 17 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()
|
D | IMetricCollectorReceiver.java | 16 package com.android.tradefed.device.metric;
|
D | MetricOption.java | 16 package com.android.tradefed.device.metric;
|
/tools/test/connectivity/tools/lab/reporters/ |
D | logger_reporter.py | 46 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/ |
D | runner.py | 58 for metric in self.metric_list: 60 key_name = self.convert_to_snake(metric.__class__.__name__)[:-7] 61 responses[key_name] = metric.gather_metric()
|
D | health_checker.py | 82 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/ |
D | Camera2LatencyTest.java | 82 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()
|
D | CameraBurstStartupTest.java | 70 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()
|
D | CameraShotLatencyTest.java | 79 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()
|
D | CameraPerformanceTest.java | 124 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()
|
D | Camera2FrameworkStressTest.java | 89 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/ |
D | CodeCoverageListenerTest.java | 95 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/ |
D | UnitTests.java | 69 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/ |
D | MetricTestCase.java | 59 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/ |
D | EmailHostHealthAgent.java | 122 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/ |
D | cpu_metric.py | 17 from metrics.metric import Metric
|
D | name_metric.py | 17 from metrics.metric import Metric
|
D | time_metric.py | 17 from metrics.metric import Metric
|
D | num_users_metric.py | 17 from metrics.metric import Metric
|
D | time_sync_metric.py | 17 from metrics.metric import Metric
|
D | system_load_metric.py | 17 from metrics.metric import Metric
|
D | uptime_metric.py | 17 from metrics.metric import Metric
|