/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/tests/metrics/ |
D | core_test.py | 41 metric = ProtoMetric(name=self.TEST_NAME, data=self.data) 42 self.assertEqual(metric.name, self.TEST_NAME) 43 self.assertEqual(metric.data, self.data) 49 metric = ProtoMetric(name=self.TEST_NAME, data=self.data) 52 metric.get_binary() 58 metric = ProtoMetric(name=self.TEST_NAME, data=self.data) 60 metric.get_ascii() 66 metric = ProtoMetric(name=self.TEST_NAME, data=self.data) 71 metric.get_descriptor_binary() 79 metric = ProtoMetric(name=self.TEST_NAME, data=self.data) [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/loggers/ |
D | bluetooth_metric_logger.py | 28 for metric in dir(proto): 29 if metric in dct: 30 if (isinstance(dct[metric], dict) 31 and isinstance(getattr(proto, metric), message.Message)): 32 recursive_assign(getattr(proto, metric), dct[metric]) 34 setattr(proto, metric, dct[metric]) 121 for metric in dir(pri_device_proto): 122 if metric in pri_config: 123 setattr(pri_device_proto, metric, pri_config[metric]) 128 for metric in dir(conn_device_proto): [all …]
|
/tools/test/connectivity/acts/framework/tests/metrics/loggers/ |
D | blackbox_test.py | 201 self.metric = BlackboxMetricLogger.for_test_case('my_metric') 204 self.metric.metric_value = result 212 metric = bundle.acts_blackbox_metric_results[0] 214 self.assertEqual(metric.test_identifier, 'MyTest#test_case') 215 self.assertEqual(metric.metric_key, 'MyTest#test_case.my_metric') 216 self.assertEqual(metric.metric_value, result) 243 flattened_metrics = [metric for bundle in bundles for metric in 246 self.assertEqual({metric.test_identifier 247 for metric in 250 self.assertEqual({metric.metric_key [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/ |
D | BtMultiprofileBaseTest.py | 41 metric=None): argument 43 if victim == 'A2DP' and aggressor == 'Ble_Scan' and metric == 'range': 50 if victim == 'Ble_Scan' and aggressor == 'A2DP' and metric == 'scan_accuracy': 59 if victim == 'RFCOMM' and aggressor == 'Ble_Scan' and metric == 'throughput': 69 if victim == 'A2DP' and aggressor == 'Ble_Adv' and metric == 'range': 76 if victim == 'A2DP' and aggressor == 'Ble_conn' and metric == 'range': 81 if victim == 'A2DP' and aggressor == 'wifi' and metric == 'range': 88 if victim == 'Ble_Scan' and aggressor == 'wifi' and metric == 'scan_accuracy': 99 if victim == 'Ble_Adv' and aggressor == 'wifi' and metric == 'periodic_adv': 110 if victim == 'RFCOMM' and aggressor == 'wifi' and metric == 'throughput':
|
D | bt_test_utils.py | 774 for metric, regex in regex_dict.items(): 782 metrics_dict[metric][ad.serial] = bqr_metric 811 for metric in metrics_to_be_formatted: 812 if metric["averagble"] == "y": 813 metrics_dict[metric["name"]][ad.serial] = [ 815 for x in metrics_dict[metric["name"]][ad.serial] 818 metrics_dict[metric["name"]][ad.serial] = [ 820 for x in metrics_dict[metric["name"]][ad.serial] 845 for metric in metrics_to_be_formatted: 846 if metric["averagble"] == "y": [all …]
|
/tools/test/connectivity/acts_tests/tests/google/gnss/ |
D | AGNSSPerformanceTest.py | 157 metric = val['avg'] 159 metric = val 161 if thresholds[key]['min'] < metric < thresholds[key]['max']: 163 'values.'.format(key, metric)) 166 '{}).'.format(key, metric, 173 self.ttf_metric.metric_value = metric 175 self.pos_error_metric.metric_value = metric 177 self.sensitivity_metric.metric_value = metric
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/metric/ |
D | GcovCodeCoverageCollectorTest.java | 17 package com.android.tradefed.device.metric; 142 Map<String, String> metric = new HashMap<>(); in test_logsCoverageZip() local 143 mCodeCoverageListener.testRunEnded(ELAPSED_TIME, TfMetricProtoUtil.upgradeConvert(metric)); in test_logsCoverageZip() 174 Map<String, String> metric = new HashMap<>(); in testNoCoverageFiles_logsEmptyZip() local 175 mCodeCoverageListener.testRunEnded(ELAPSED_TIME, TfMetricProtoUtil.upgradeConvert(metric)); in testNoCoverageFiles_logsEmptyZip() 201 Map<String, String> metric = new HashMap<>(); in testCoverageFlushAllProcesses_flushAllCommandCalled() local 202 mCodeCoverageListener.testRunEnded(ELAPSED_TIME, TfMetricProtoUtil.upgradeConvert(metric)); in testCoverageFlushAllProcesses_flushAllCommandCalled() 222 Map<String, String> metric = new HashMap<>(); in testCoverageFlushSpecificProcesses_flushCommandCalled() local 223 mCodeCoverageListener.testRunEnded(ELAPSED_TIME, TfMetricProtoUtil.upgradeConvert(metric)); in testCoverageFlushSpecificProcesses_flushCommandCalled() 240 Map<String, String> metric = new HashMap<>(); in testFailure_unableToPullFile() local [all …]
|
/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/util/proto/ |
D | TfMetricProtoUtil.java | 88 Metric metric = null; in upgradeConvert() local 93 metric = createSingleValue(numMetric.longValue(), null); in upgradeConvert() 97 if (metric == null) { in upgradeConvert() 98 metric = stringToMetric(stringMetric); in upgradeConvert() 100 newFormat.put(key, metric); in upgradeConvert() 122 public static Metric stringToMetric(String metric) { in stringToMetric() argument 123 Measurements measures = Measurements.newBuilder().setSingleString(metric).build(); in stringToMetric()
|
/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/test_framework/com/android/tradefed/device/metric/ |
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 | BluetoothConnectionStateCollector.java | 17 package com.android.tradefed.device.metric; 86 EventMetricData metric, in processEventMetric() argument 88 Atom atom = metric.hasAtom() ? metric.getAtom() : metric.getAggregatedAtomInfo().getAtom(); in processEventMetric()
|
D | BluetoothConnectionLatencyCollector.java | 17 package com.android.tradefed.device.metric; 101 for (DurationMetricData metric : durationData.getDataList()) { in processBluetoothConnectionLatencyData() 103 for (DurationBucketInfo bucket : metric.getBucketInfoList()) { in processBluetoothConnectionLatencyData() 106 int bluetoothProfile = metric.getDimensionLeafValuesInWhat(0).getValueInt(); in processBluetoothConnectionLatencyData()
|
/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()
|
/tools/test/connectivity/acts/framework/acts/metrics/loggers/ |
D | bounded_metrics.py | 40 def add(self, metric, value, lower_limit=None, upper_limit=None, unit=None): argument 57 bounded_metric.metric = metric 65 self._metric_map[metric] = bounded_metric
|
/tools/tradefederation/core/javatests/com/android/tradefed/ |
D | UnitTests.java | 120 import com.android.tradefed.device.metric.AtraceCollectorTest; 121 import com.android.tradefed.device.metric.AtraceRunMetricCollectorTest; 122 import com.android.tradefed.device.metric.AutoLogCollectorTest; 123 import com.android.tradefed.device.metric.BaseDeviceMetricCollectorTest; 124 import com.android.tradefed.device.metric.BluetoothHciSnoopLogCollectorTest; 125 import com.android.tradefed.device.metric.BugreportzOnFailureCollectorTest; 126 import com.android.tradefed.device.metric.BugreportzOnTestCaseFailureCollectorTest; 127 import com.android.tradefed.device.metric.ClangCodeCoverageCollectorTest; 128 import com.android.tradefed.device.metric.DebugHostLogOnFailureCollectorTest; 129 import com.android.tradefed.device.metric.DeviceMetricDataTest; [all …]
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
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 | 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 | CameraPerformanceTest.java | 129 for (Map.Entry<String, String> metric : testMetrics.entrySet()) { in handleMetricsOnTestEnded() 130 getAggregatedMetrics().put(test.getTestName(), metric.getValue()); in handleMetricsOnTestEnded() 163 for (Map.Entry<String, String> metric : metrics.entrySet()) { in parseResult() 164 String testMethod = metric.getKey(); in parseResult() 165 String testResult = metric.getValue(); in parseResult() 289 for (CtsMetric metric : metrics) { in filter() 292 if (metric.matches(testMethod, kpiName)) { in filter() 293 filtered.put(metric.schemaKey, metric.value); in filter()
|
/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;
|
/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/tradefederation/core/proto/monitoring/server/ |
D | lab_resource.proto | 28 // A tag-value pair message represents the metric value. 31 // metric { 51 // metric: { 55 // metric: { 59 // metric: { 70 repeated Metric metric = 3; field
|
/tools/tradefederation/core/test_framework/com/android/tradefed/postprocessor/ |
D | PerfettoGenericPostProcessor.java | 382 for (Map.Entry<String, Metric.Builder> metric : processPerfettoMetrics.entrySet()) { in replacePrefix() 385 if (metric.getKey().startsWith(replaceEntry.getKey())) { in replacePrefix() 386 String newKey = metric.getKey().replaceFirst(replaceEntry.getKey(), in replacePrefix() 388 finalMetrics.put(newKey, metric.getValue()); in replacePrefix() 395 finalMetrics.put(metric.getKey(), metric.getValue()); in replacePrefix() 412 for (Map.Entry<String, Metric.Builder> metric : processPerfettoMetrics.entrySet()) { in replaceAllMetricPrefix() 413 String newKey = String.format("%s_%s", mAllMetricPrefix, metric.getKey()); in replaceAllMetricPrefix() 414 finalMetrics.put(newKey, metric.getValue()); in replaceAllMetricPrefix() 415 CLog.d("Perfetto trace metric: key: %s value: %s", newKey, metric.getValue()); in replaceAllMetricPrefix()
|
/tools/acloud/internal/lib/ |
D | gcompute_client.py | 233 def GetMetricQuota(regions_info, zone, metric): argument 248 if quota["metric"] == metric: 250 logger.info("Can't get %s quota info from zone(%s)", metric, zone) 265 for metric in _METRICS: 266 quota = self.GetMetricQuota(regions_info, zone, metric) 269 "Can't query the metric(%s) in zone(%s)", metric, zone) 271 if quota[_LIMIT] - quota[_USAGE] < _REQUIRE_METRICS[metric]: 273 "The metric(%s) is over limit in zone(%s)", metric, zone) 1473 for metric in self.MACHINE_SIZE_METRICS: 1474 if metric not in machine_info_1 or metric not in machine_info_2: [all …]
|