Home
last modified time | relevance | path

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

/platform_testing/libraries/compatibility-common-util/tests/src/com/android/compatibility/common/util/
DReportLogTest.java111 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/
DStopwatchRuleTest.java51 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/
DJSScriptEngineLatencyHelper.java83 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()
DTopicsLatencyHelper.java73 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()
DSelectAdsLatencyHelper.java71 String metric = matcher.group(1); in processInput() local
73 output.put(metric, latency); in processInput()
DMeasurementLatencyHelper.java63 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/
DMetricUtility.java48 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/
DREADME.md3 Event metric for latency for the APIs called from app to the sandbox
/platform_testing/libraries/device-collectors/src/main/
DAndroid.bp34 "lyric-metric-helper",
40 "system-metric-helper",
/platform_testing/tests/automotive/health/boottime/src/android/boottime/postprocessor/
DLogcatPostProcessor.java209 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/
DStatsdHelper.java67 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/
DLogcatCollectorHostTest.java25 import com.android.tradefed.device.metric.DeviceMetricData;
26 import com.android.tradefed.device.metric.FilePullerDeviceMetricCollector;
DScreenshotOnFailureCollectorHostTest.java26 import com.android.tradefed.device.metric.DeviceMetricData;
27 import com.android.tradefed.device.metric.FilePullerDeviceMetricCollector;
DBatterystatsCollectorHostTest.java28 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/
DAudioTestHarnessHermeticServerManagingMetricCollector.java29 import com.android.tradefed.device.metric.BaseDeviceMetricCollector;
30 import com.android.tradefed.device.metric.DeviceMetricData;
/platform_testing/libraries/collectors-helper/system/test/
DAndroid.bp27 "system-metric-helper",
/platform_testing/libraries/collectors-helper/lyric/test/
DAndroid.bp29 "lyric-metric-helper",
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/
DJankCollectionHelper.java330 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/
DSimpleperfListener.java305 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/
DAndroid.bp21 name: "lyric-metric-helper",
/platform_testing/libraries/collectors-helper/system/
DAndroid.bp21 name: "system-metric-helper",
/platform_testing/libraries/device-collectors/src/main/platform-collectors/res/statsd-configs/
DREADME.md23 Please follow go/android-crystalball/features/metric/statsdlistener#creating-a-config.
/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/
DDumpsysMeminfoHelperTest.java215 for (String metric : METRICS) { in verifyKeysForProcess()
219 METRIC_SOURCE, category, metric, UNIT, processName))); in verifyKeysForProcess()
/platform_testing/host_runners/boot/src/com/android/boot/
DBootTimeTest.java34 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/
DAudioTestHarnessHermeticServerManagingMetricCollectorTests.java33 import com.android.tradefed.device.metric.DeviceMetricData;