Home
last modified time | relevance | path

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

/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/
DMetricUtility.java40 public static void addMetric(String metricKey, long metric, Map<String, in addMetric() argument
42 resultMap.compute(metricKey, (key, value) -> (value == null) ? in addMetric()
52 public static void addMetric(String metricKey, Map<String, in addMetric() argument
54 resultMap.compute(metricKey, (key, value) -> (value == null) ? 1 : value + 1); in addMetric()
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/
DAppStartupHelper.java143 String metricKey = ""; in getMetrics() local
146 metricKey = MetricUtility.constructKey( in getMetrics()
150 metricKey = MetricUtility.constructKey( in getMetrics()
154 metricKey = MetricUtility.constructKey( in getMetrics()
158 if (!metricKey.isEmpty()) { in getMetrics()
159 MetricUtility.addMetric(metricKey, startupTimeMillis, appStartResultMap); in getMetrics()
176 String metricKey = ""; in getMetrics() local
196 metricKey = MetricUtility.constructKey(typeKey, in getMetrics()
206 MetricUtility.addMetric(metricKey, processStartDelayMillis, in getMetrics()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DStopwatchRule.java56 String metricKey = in reportMetric() local
60 mResult.putLong(metricKey, millis); in reportMetric()
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
DStopwatchRuleTest.java53 String metricKey = String.format(StopwatchRule.METRIC_FORMAT, "clzz", "method"); in testMeasurementIsCorrect() local
54 long value = metric.getLong(metricKey); in testMeasurementIsCorrect()
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/
DShowmapSnapshotHelper.java260 String metricKey = constructKey(String.format(OUTPUT_METRIC_PATTERN, entry.getValue()), in parseAndUpdateMemoryInfo() local
264 if(mMemoryMap.containsKey(metricKey)) { in parseAndUpdateMemoryInfo()
265 long currValue = Long.parseLong(mMemoryMap.get(metricKey)); in parseAndUpdateMemoryInfo()
266 mMemoryMap.put(metricKey, Long.toString(currValue + in parseAndUpdateMemoryInfo()
269 mMemoryMap.put(metricKey, Long.toString(Long.parseLong( in parseAndUpdateMemoryInfo()
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/
DJankCollectionHelper.java311 String metricKey = in parseGfxInfoMetrics() local
316 Log.d(LOG_TAG, String.format("Did not find %s from %s", metricKey, packageName)); in parseGfxInfoMetrics()
318 results.put(metricKey, value); in parseGfxInfoMetrics()
DSfStatsCollectionHelper.java98 String metricKey = constructKey(SFSTATS_METRICS_PREFIX, "GLOBAL", key.toUpperCase()); in getMetrics() local
99 results.put(metricKey, parseStatsValue(globalPairs.get(key))); in getMetrics()