Home
last modified time | relevance | path

Searched refs:metricKey (Results 1 – 9 of 9) sorted by relevance

/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
50 resultMap.compute(metricKey, (key, value) -> (value == null) ? in addMetric()
62 String metricKey, double metric, Map<String, StringBuilder> resultMap) { in addMetric() argument
64 metricKey, in addMetric()
76 public static void addMetric(String metricKey, Map<String, in addMetric() argument
78 resultMap.compute(metricKey, (key, value) -> (value == null) ? 1 : value + 1); in addMetric()
89 String metricKey, Map<String, StringBuilder> resultMap) { in getMetricDoubles() argument
91 if (!resultMap.containsKey(metricKey)) { in getMetricDoubles()
92 Log.e(TAG, String.format("No such metric key %s", metricKey)); in getMetricDoubles()
95 String value = resultMap.get(metricKey).toString(); in getMetricDoubles()
[all …]
/platform_testing/libraries/collectors-helper/app/test/src/com/android/helpers/tests/
DAppVersionHelperTest.java85 String metricKey = constructKey(METRIC_PREFIX, TEST_PACKAGE_NAME); in testGetMetrics_OnePackage() local
86 assertTrue("Missing metric key: " + metricKey, appVersionMetrics.containsKey(metricKey)); in testGetMetrics_OnePackage()
87 assertTrue("Bad metric for " + metricKey + ": " + appVersionMetrics.get(metricKey), in testGetMetrics_OnePackage()
88 appVersionMetrics.get(metricKey) > 0); in testGetMetrics_OnePackage()
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/
DAppStartupHelper.java162 String metricKey = ""; in getMetrics() local
165 metricKey = MetricUtility.constructKey( in getMetrics()
169 metricKey = MetricUtility.constructKey( in getMetrics()
173 metricKey = MetricUtility.constructKey( in getMetrics()
177 metricKey = MetricUtility.constructKey( in getMetrics()
181 if (!metricKey.isEmpty()) { in getMetrics()
182 MetricUtility.addMetric(metricKey, startupTimeMillis, appStartResultMap); in getMetrics()
203 String metricKey = ""; in getMetrics() local
223 metricKey = MetricUtility.constructKey(typeKey, in getMetrics()
233 MetricUtility.addMetric(metricKey, processStartDelayMillis, in getMetrics()
DStatsdStatsHelper.java172 final String metricKey = in populateMetricStats() local
178 resultMap.put(metricKey, Long.valueOf(dataItem.maxTupleCounts)); in populateMetricStats()
183 final String metricKey = in populateMetricStats() local
186 resultMap.put(metricKey, Long.valueOf(summaryCount)); in populateMetricStats()
197 final String metricKey = in populateConditionStats() local
203 resultMap.put(metricKey, Long.valueOf(dataItem.maxTupleCounts)); in populateConditionStats()
208 final String metricKey = in populateConditionStats() local
211 resultMap.put(metricKey, Long.valueOf(summaryCount)); in populateConditionStats()
222 final String metricKey = in populateMatcherStats() local
228 resultMap.put(metricKey, Long.valueOf(dataItem.matchedTimes)); in populateMatcherStats()
[all …]
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
DStopwatchRuleTest.java52 String metricKey = String.format(StopwatchRule.METRIC_FORMAT, "clzz", "method"); in testMeasurementIsCorrect() local
53 long value = metric.getLong(metricKey); in testMeasurementIsCorrect()
110 String metricKey = String.format(StopwatchRule.METRIC_FORMAT, "clzz", "method"); in testMetricKeyWithAppend() local
111 long value = metric.getLong(metricKey); in testMetricKeyWithAppend()
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/
DStatsdStatsHelperTest.java277 final String metricKey = in verifyConfigAlertStats() local
283 assertEquals(result.get(metricKey), Long.valueOf(i + 2)); in verifyConfigAlertStats()
290 final String metricKey = in verifyConfigMatcherStats() local
296 assertEquals(result.get(metricKey), Long.valueOf(i + 2)); in verifyConfigMatcherStats()
303 final String metricKey = in verifyConfigConditionStats() local
309 assertEquals(result.get(metricKey), Long.valueOf(i + 2)); in verifyConfigConditionStats()
316 final String metricKey = in verifyConfigMetricStats() local
322 assertEquals(result.get(metricKey), Long.valueOf(i + 2)); in verifyConfigMetricStats()
364 final String metricKey = MetricUtility.constructKey(metricKeyPrefix, "alarms_registered"); in verifyAnomalyAlarmStats() local
365 assertEquals(result.get(metricKey), Long.valueOf(1)); in verifyAnomalyAlarmStats()
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/
DJankCollectionHelper.java331 String metricKey = in parseGfxInfoMetrics() local
336 Log.d(LOG_TAG, String.format("Did not find %s from %s", metricKey, packageName)); in parseGfxInfoMetrics()
338 results.put(metricKey, value); in parseGfxInfoMetrics()
DSfStatsCollectionHelper.java100 String metricKey = constructKey(SFSTATS_METRICS_PREFIX, "GLOBAL", key.toUpperCase()); in getMetrics() local
101 results.put(metricKey, parseStatsValue(globalPairs.get(key))); in getMetrics()
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/
DShowmapSnapshotHelper.java440 String metricKey = in parseAndUpdateMemoryInfo() local
447 if (mMemoryMap.containsKey(metricKey)) { in parseAndUpdateMemoryInfo()
448 long currValue = Long.parseLong(mMemoryMap.get(metricKey)); in parseAndUpdateMemoryInfo()
449 mMemoryMap.put(metricKey, Long.toString(currValue + metricValue * 1024)); in parseAndUpdateMemoryInfo()
451 mMemoryMap.put(metricKey, Long.toString(metricValue * 1024)); in parseAndUpdateMemoryInfo()