/tools/test/connectivity/acts/framework/acts/metrics/ |
D | core.py | 153 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/ |
D | bluetooth_metric_logger.py | 29 for metric in dir(proto): 30 if metric in dct: 31 if (isinstance(dct[metric], dict) and 32 isinstance(getattr(proto, metric), message.Message)): 33 recursive_assign(getattr(proto, metric), dct[metric]) 35 setattr(proto, metric, dct[metric]) 118 for metric in dir(pri_device_proto): 119 if metric in pri_config: 120 setattr(pri_device_proto, metric, pri_config[metric]) 125 for metric in dir(conn_device_proto): [all …]
|
/tools/test/connectivity/acts/framework/tests/metrics/ |
D | core_test.py | 42 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/tradefederation/core/test_framework/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 | 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()
|
/tools/test/connectivity/acts/framework/tests/metrics/loggers/ |
D | blackbox_test.py | 205 self.metric = BlackboxMetricLogger.for_test_case( 209 self.metric.metric_value = result 215 metric = self.__get_only_arg(args_list[0])[0] 216 self.assertEqual(metric.name, 'blackbox_my_metric') 217 self.assertEqual(metric.data.test_identifier, 'MyTest#test_case') 218 self.assertEqual(metric.data.metric_key, 'MyTest#test_case.my_metric') 219 self.assertEqual(metric.data.metric_value, result) 243 self.assertEqual({metric.name 244 for metric in metrics}, 246 self.assertEqual({metric.data.test_identifier [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
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()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | NativeCodeCoverageListenerTest.java | 114 Map<String, String> metric = new HashMap<>(); in test_logsCoverageZip() local 115 mCodeCoverageListener.testRunEnded(ELAPSED_TIME, TfMetricProtoUtil.upgradeConvert(metric)); in test_logsCoverageZip() 146 Map<String, String> metric = new HashMap<>(); in testNoCoverageFiles_logsEmptyZip() local 147 mCodeCoverageListener.testRunEnded(ELAPSED_TIME, TfMetricProtoUtil.upgradeConvert(metric)); in testNoCoverageFiles_logsEmptyZip() 176 Map<String, String> metric = new HashMap<>(); in testCoverageFlushAllProcesses_flushAllCommandCalled() local 177 mCodeCoverageListener.testRunEnded(ELAPSED_TIME, TfMetricProtoUtil.upgradeConvert(metric)); in testCoverageFlushAllProcesses_flushAllCommandCalled() 201 Map<String, String> metric = new HashMap<>(); in testCoverageFlushSpecificProcesses_flushCommandCalled() local 202 mCodeCoverageListener.testRunEnded(ELAPSED_TIME, TfMetricProtoUtil.upgradeConvert(metric)); in testCoverageFlushSpecificProcesses_flushCommandCalled() 218 Map<String, String> metric = new HashMap<>(); in testFailure_unableToPullFile() local 221 ELAPSED_TIME, TfMetricProtoUtil.upgradeConvert(metric)); in testFailure_unableToPullFile() [all …]
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | CameraBurstStartupTest.java | 72 for (Map.Entry<String, String> metric : testMetrics.entrySet()) { in parseResults() 73 Matcher matcher = STATS_REGEX.matcher(metric.getValue()); in parseResults() 77 String keyName = String.format("%s_%s", testName, metric.getKey()); in parseResults() 80 CLog.w(String.format("Stats not in correct format: %s", metric.getValue())); in parseResults()
|
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 | 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()
|
/tools/test/graphicsbenchmark/performance_tests/hostside/test/com/android/game/qualification/metric/ |
D | MetricSummaryTest.java | 16 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;
|
D | BaseGameQualificationMetricCollectorTest.java | 16 package com.android.game.qualification.metric; 21 import com.android.tradefed.device.metric.DeviceMetricData;
|
D | GameQualificationScheduledMetricCollectorTest.java | 16 package com.android.game.qualification.metric; 21 import com.android.tradefed.device.metric.DeviceMetricData;
|
/tools/tradefederation/core/src/com/android/tradefed/postprocessor/ |
D | AveragePostProcessor.java | 40 Metric metric = rawMetrics.get(key); in processRunMetricsAndLogs() local 41 Measurements measure = metric.getMeasurements(); in processRunMetricsAndLogs() 52 newMetrics.put(key + AVERAGE_KEY_TAG, createAvgMetric(avg, metric)); in processRunMetricsAndLogs() 63 newMetrics.put(key + AVERAGE_KEY_TAG, createAvgMetric(avg, metric)); in processRunMetricsAndLogs()
|
/tools/test/connectivity/acts/tests/google/gnss/ |
D | AGNSSPerformanceTest.py | 148 metric = val['avg'] 150 metric = val 152 if thresholds[key]['min'] < metric < thresholds[key]['max']: 154 'values.'.format(key, metric)) 157 '{}).'.format(key, metric,
|
/tools/tradefederation/core/tests/src/com/android/tradefed/ |
D | UnitTests.java | 94 import com.android.tradefed.device.metric.AtraceCollectorTest; 95 import com.android.tradefed.device.metric.AtraceRunMetricCollectorTest; 96 import com.android.tradefed.device.metric.AutoLogCollectorTest; 97 import com.android.tradefed.device.metric.BaseDeviceMetricCollectorTest; 98 import com.android.tradefed.device.metric.BuddyInfoMetricCollectorTest; 99 import com.android.tradefed.device.metric.BugreportzMetricCollectorTest; 100 import com.android.tradefed.device.metric.BugreportzOnFailureCollectorTest; 101 import com.android.tradefed.device.metric.DebugHostLogOnFailureCollectorTest; 102 import com.android.tradefed.device.metric.DeviceMetricDataTest; 103 import com.android.tradefed.device.metric.DumpHeapCollectorTest; [all …]
|
/tools/test/connectivity/acts/framework/acts/test_utils/tel/loggers/ |
D | telephony_metric_logger.py | 46 metric = ProtoMetric(name='telephony_voice_test_result', 48 return self.publisher.publish(metric)
|
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/metric/ |
D | GameQualificationFpsCollector.java | 16 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()
|
D | BaseGameQualificationMetricCollector.java | 17 package com.android.game.qualification.metric; 24 import com.android.tradefed.device.metric.BaseDeviceMetricCollector; 25 import com.android.tradefed.device.metric.DeviceMetricData;
|
D | LoopSummary.java | 1 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/tradefederation/core/test_framework/com/android/tradefed/postprocessor/ |
D | PerfettoGenericPostProcessor.java | 274 for (Map.Entry<String, Metric.Builder> metric : processPerfettoMetrics.entrySet()) { in replacePrefix() 277 if (metric.getKey().startsWith(replaceEntry.getKey())) { in replacePrefix() 278 String newKey = metric.getKey().replaceFirst(replaceEntry.getKey(), in replacePrefix() 280 finalMetrics.put(newKey, metric.getValue()); in replacePrefix() 287 finalMetrics.put(metric.getKey(), metric.getValue()); in replacePrefix() 304 for (Map.Entry<String, Metric.Builder> metric : processPerfettoMetrics.entrySet()) { in replaceAllMetricPrefix() 305 String newKey = String.format("%s_%s", mAllMetricPrefix, metric.getKey()); in replaceAllMetricPrefix() 306 finalMetrics.put(newKey, metric.getValue()); in replaceAllMetricPrefix() 307 CLog.d("Perfetto trace metric: key: %s value: %s", newKey, metric.getValue()); in replaceAllMetricPrefix()
|
/tools/test/connectivity/acts/framework/acts/test_utils/instrumentation/power/ |
D | instrumentation_power_test.py | 451 for metric_name, metric in test_thresholds.items(): 457 if 'unit_type' not in metric or 'unit' not in metric: 459 unit_type = metric['unit_type'] 460 unit = metric['unit'] 462 lower_value = metric.get_numeric('lower_limit', float('-inf')) 463 upper_value = metric.get_numeric('upper_limit', float('inf')) 464 if 'expected_value' in metric and 'percent_deviation' in metric: 465 expected_value = metric.get_numeric('expected_value') 466 percent_deviation = metric.get_numeric('percent_deviation')
|
/tools/test/connectivity/acts/framework/acts/test_utils/power/loggers/ |
D | power_metric_logger.py | 61 metric = ProtoMetric(name='spanner_power_metric', data=self.proto) 62 return self.publisher.publish(metric)
|