/platform_testing/libraries/compatibility-common-util/tests/src/com/android/compatibility/common/util/ |
D | ReportLogTest.java | 111 Metric metric = new Metric(SOURCE, MESSAGE, 1.0, ResultType.HIGHER_BETTER, ResultUnit.BYTE); in testLimits_source() local 112 assertEquals("Expected message to be ok", SOURCE, metric.getSource()); in testLimits_source() 119 metric = new Metric(source, MESSAGE, 1.0, ResultType.HIGHER_BETTER, ResultUnit.BYTE); in testLimits_source() 121 metric.getSource()); in testLimits_source() 126 Metric metric = new Metric(SOURCE, MESSAGE, 1.0, ResultType.HIGHER_BETTER, ResultUnit.BYTE); in testLimits_message() local 127 assertEquals("Expected message to be ok", MESSAGE, metric.getMessage()); in testLimits_message() 134 metric = new Metric(SOURCE, message, 1.0, ResultType.HIGHER_BETTER, ResultUnit.BYTE); in testLimits_message() 136 metric.getMessage()); in testLimits_message() 141 Metric metric = new Metric(SOURCE, MESSAGE, VALUES, ResultType.HIGHER_BETTER, in testLimits_values() local 143 assertTrue("Expected values to be ok", Arrays.equals(VALUES, metric.getValues())); in testLimits_values() [all …]
|
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/ |
D | StopwatchRuleTest.java | 51 Bundle metric = rule.getMetric(); in testMeasurementIsCorrect() local 53 long value = metric.getLong(metricKey); in testMeasurementIsCorrect() 88 Bundle metric = rule.getMetric(); in testMetricKeyWithoutAppend() local 89 long value = metric.getLong(StopwatchRule.METRIC_BASE); in testMetricKeyWithoutAppend() 109 Bundle metric = rule.getMetric(); in testMetricKeyWithAppend() local 111 long value = metric.getLong(metricKey); in testMetricKeyWithAppend()
|
/platform_testing/libraries/collectors-helper/adservices/src/com/android/helpers/ |
D | JSScriptEngineLatencyHelper.java | 83 String metric = matcher.group(1); in processInput() local 85 if (SANDBOX_INIT_TIME.equals(metric)) { in processInput() 87 } else if (ISOLATE_CREATE_TIME.equals(metric)) { in processInput() 89 } else if (JAVA_EXECUTION_TIME.equals(metric)) { in processInput() 91 } else if (WEBVIEW_EXECUTION_TIME.equals(metric)) { in processInput()
|
D | TopicsLatencyHelper.java | 73 String metric = matcher.group(1); in processInput() local 75 if (TOPICS_HOT_START_LATENCY_METRIC.equals(metric)) { in processInput() 77 } else if (TOPICS_COLD_START_LATENCY_METRIC.equals(metric)) { in processInput()
|
D | SelectAdsLatencyHelper.java | 71 String metric = matcher.group(1); in processInput() local 73 output.put(metric, latency); in processInput()
|
D | MeasurementLatencyHelper.java | 63 String metric = matcher.group(1); in processInput() local 65 output.put(metric, latency); in processInput()
|
/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/ |
D | MetricUtility.java | 48 public static void addMetric(String metricKey, long metric, Map<String, in addMetric() argument 51 new StringBuilder().append(metric) : value.append(METRIC_SEPARATOR).append(metric)); in addMetric() 62 String metricKey, double metric, Map<String, StringBuilder> resultMap) { in addMetric() argument 67 .append(DOUBLE_FORMAT.format(metric))); in addMetric()
|
/platform_testing/libraries/device-collectors/src/main/platform-collectors/res/statsd-configs/sandbox-latency-metrics/ |
D | README.md | 3 Event metric for latency for the APIs called from app to the sandbox
|
/platform_testing/libraries/device-collectors/src/main/ |
D | Android.bp | 34 "lyric-metric-helper", 40 "system-metric-helper",
|
/platform_testing/tests/automotive/health/boottime/src/android/boottime/postprocessor/ |
D | LogcatPostProcessor.java | 209 for (Map.Entry<String, GenericTimingItem> metric : itemsMap.entrySet()) { in analyzeCustomBootInfo() 210 GenericTimingItem itemsForMetric = metric.getValue(); in analyzeCustomBootInfo() 212 LogUtil.CLog.e("Missing value for metric %s", metric.getKey()); in analyzeCustomBootInfo() 216 metrics.put(metric.getKey(), duration); in analyzeCustomBootInfo() 218 "Added boot metric: %s with duration value: %f", metric.getKey(), duration); in analyzeCustomBootInfo()
|
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/ |
D | StatsdHelper.java | 67 StatsdConfigProto.EventMetric metric = new StatsdConfigProto.EventMetric(); in addEventConfig() local 68 metric.id = getUniqueId(); in addEventConfig() 69 metric.what = atomUniqueId; in addEventConfig() 70 metrics.add(metric); in addEventConfig() 231 for (com.android.os.nano.StatsLog.StatsLogReport metric : configReport.metrics) { in getEventMetrics() 233 eventMetricDataWrapper = metric.getEventMetrics(); in getEventMetrics() 272 for (com.android.os.nano.StatsLog.StatsLogReport metric : configReport.metrics) { in getGaugeMetrics() 274 gaugeMetricDataWrapper = metric.getGaugeMetrics(); in getGaugeMetrics()
|
/platform_testing/libraries/device-collectors/src/hostsidetests/src/com/android/collectors/ |
D | LogcatCollectorHostTest.java | 25 import com.android.tradefed.device.metric.DeviceMetricData; 26 import com.android.tradefed.device.metric.FilePullerDeviceMetricCollector;
|
D | ScreenshotOnFailureCollectorHostTest.java | 26 import com.android.tradefed.device.metric.DeviceMetricData; 27 import com.android.tradefed.device.metric.FilePullerDeviceMetricCollector;
|
D | BatterystatsCollectorHostTest.java | 28 import com.android.tradefed.device.metric.DeviceMetricData; 29 import com.android.tradefed.device.metric.FilePullerDeviceMetricCollector;
|
/platform_testing/libraries/audio-test-harness/tradefed/src/main/java/com/android/media/audiotestharness/tradefed/ |
D | AudioTestHarnessHermeticServerManagingMetricCollector.java | 29 import com.android.tradefed.device.metric.BaseDeviceMetricCollector; 30 import com.android.tradefed.device.metric.DeviceMetricData;
|
/platform_testing/libraries/collectors-helper/system/test/ |
D | Android.bp | 27 "system-metric-helper",
|
/platform_testing/libraries/collectors-helper/lyric/test/ |
D | Android.bp | 29 "lyric-metric-helper",
|
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/ |
D | JankCollectionHelper.java | 330 for (GfxInfoMetric metric : GfxInfoMetric.values()) { in parseGfxInfoMetrics() 332 constructKey(GFXINFO_METRICS_PREFIX, packageName, metric.getMetricId()); in parseGfxInfoMetrics() 334 Double value = metric.parse(output); in parseGfxInfoMetrics()
|
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/ |
D | SimpleperfListener.java | 305 for (Map.Entry<String /*event-process-symbol*/, String /*eventCount*/> metric : in getSimpleperfReport() 307 data.addStringMetric(metric.getKey(), metric.getValue()); in getSimpleperfReport()
|
/platform_testing/libraries/collectors-helper/lyric/ |
D | Android.bp | 21 name: "lyric-metric-helper",
|
/platform_testing/libraries/collectors-helper/system/ |
D | Android.bp | 21 name: "system-metric-helper",
|
/platform_testing/libraries/device-collectors/src/main/platform-collectors/res/statsd-configs/ |
D | README.md | 23 Please follow go/android-crystalball/features/metric/statsdlistener#creating-a-config.
|
/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/ |
D | DumpsysMeminfoHelperTest.java | 215 for (String metric : METRICS) { in verifyKeysForProcess() 219 METRIC_SOURCE, category, metric, UNIT, processName))); in verifyKeysForProcess()
|
/platform_testing/host_runners/boot/src/com/android/boot/ |
D | BootTimeTest.java | 34 import com.android.tradefed.device.metric.IMetricCollector; 35 import com.android.tradefed.device.metric.IMetricCollectorReceiver; 942 for (Map.Entry<String, GenericTimingItem> metric : itemsMap.entrySet()) { in analyzeCustomBootInfo() 943 GenericTimingItem itemsForMetric = metric.getValue(); in analyzeCustomBootInfo() 945 CLog.e("Missing value for metric %s", metric.getKey()); in analyzeCustomBootInfo() 948 List<Double> values = mBootInfo.getOrDefault(metric.getKey(), new ArrayList<>()); in analyzeCustomBootInfo() 954 mBootInfo.put(metric.getKey(), values); in analyzeCustomBootInfo() 955 mBootIterationInfo.put(metric.getKey(), duration); in analyzeCustomBootInfo() 956 CLog.d("Added boot metric: %s with duration values: %s", metric.getKey(), values); in analyzeCustomBootInfo()
|
/platform_testing/libraries/audio-test-harness/tradefed/src/test/java/com/android/media/audiotestharness/tradefed/ |
D | AudioTestHarnessHermeticServerManagingMetricCollectorTests.java | 33 import com.android.tradefed.device.metric.DeviceMetricData;
|