/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/ |
D | MetricUtility.java | 45 public static void addMetric(String metricKey, long metric, Map<String, in addMetric() argument 47 resultMap.compute(metricKey, (key, value) -> (value == null) ? in addMetric() 59 String metricKey, double metric, Map<String, StringBuilder> resultMap) { in addMetric() argument 61 metricKey, in addMetric() 73 public static void addMetric(String metricKey, Map<String, in addMetric() argument 75 resultMap.compute(metricKey, (key, value) -> (value == null) ? 1 : value + 1); in addMetric() 86 String metricKey, Map<String, StringBuilder> resultMap) { in getMetricDoubles() argument 88 if (!resultMap.containsKey(metricKey)) { in getMetricDoubles() 89 Log.e(TAG, String.format("No such metric key %s", metricKey)); in getMetricDoubles() 92 String value = resultMap.get(metricKey).toString(); in getMetricDoubles() [all …]
|
/platform_testing/libraries/collectors-helper/app/test/src/com/android/helpers/tests/ |
D | AppVersionHelperTest.java | 85 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/ |
D | AppStartupHelper.java | 157 String metricKey = ""; in getMetrics() local 160 metricKey = MetricUtility.constructKey( in getMetrics() 164 metricKey = MetricUtility.constructKey( in getMetrics() 168 metricKey = MetricUtility.constructKey( in getMetrics() 172 if (!metricKey.isEmpty()) { in getMetrics() 173 MetricUtility.addMetric(metricKey, startupTimeMillis, appStartResultMap); in getMetrics() 194 String metricKey = ""; in getMetrics() local 214 metricKey = MetricUtility.constructKey(typeKey, in getMetrics() 224 MetricUtility.addMetric(metricKey, processStartDelayMillis, in getMetrics()
|
D | StatsdStatsHelper.java | 153 final String metricKey = in populateMetricStats() local 159 resultMap.put(metricKey, Long.valueOf(dataItem.maxTupleCounts)); in populateMetricStats() 168 final String metricKey = in populateConditionStats() local 174 resultMap.put(metricKey, Long.valueOf(dataItem.maxTupleCounts)); in populateConditionStats() 183 final String metricKey = in populateMatcherStats() local 189 resultMap.put(metricKey, Long.valueOf(dataItem.matchedTimes)); in populateMatcherStats() 198 final String metricKey = in populateAlertStats() local 204 resultMap.put(metricKey, Long.valueOf(dataItem.alertedTimes)); in populateAlertStats() 214 final String metricKey = in populateAnomalyAlarmStats() local 217 resultMap.put(metricKey, Long.valueOf(anomalyAlarmStats.alarmsRegistered)); in populateAnomalyAlarmStats()
|
/platform_testing/libraries/health/rules/src/android/platform/test/rule/ |
D | StopwatchRule.java | 56 String metricKey = in reportMetric() local 60 mResult.putLong(metricKey, millis); in reportMetric()
|
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/ |
D | StopwatchRuleTest.java | 53 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/ |
D | ShowmapSnapshotHelper.java | 286 String metricKey = constructKey( in parseAndUpdateMemoryInfo() local 291 if (mMemoryMap.containsKey(metricKey)) { in parseAndUpdateMemoryInfo() 292 long currValue = Long.parseLong(mMemoryMap.get(metricKey)); in parseAndUpdateMemoryInfo() 293 mMemoryMap.put(metricKey, Long.toString(currValue + in parseAndUpdateMemoryInfo() 296 mMemoryMap.put(metricKey, Long.toString(Long.parseLong( in parseAndUpdateMemoryInfo()
|
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/ |
D | StatsdStatsHelperTest.java | 276 final String metricKey = in verifyConfigAlertStats() local 282 assertEquals(result.get(metricKey), Long.valueOf(i + 2)); in verifyConfigAlertStats() 289 final String metricKey = in verifyConfigMatcherStats() local 295 assertEquals(result.get(metricKey), Long.valueOf(i + 2)); in verifyConfigMatcherStats() 302 final String metricKey = in verifyConfigConditionStats() local 308 assertEquals(result.get(metricKey), Long.valueOf(i + 2)); in verifyConfigConditionStats() 315 final String metricKey = in verifyConfigMetricStats() local 321 assertEquals(result.get(metricKey), Long.valueOf(i + 2)); in verifyConfigMetricStats() 363 final String metricKey = MetricUtility.constructKey(metricKeyPrefix, "alarms_registered"); in verifyAnomalyAlarmStats() local 364 assertEquals(result.get(metricKey), Long.valueOf(1)); in verifyAnomalyAlarmStats()
|
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/ |
D | JankCollectionHelper.java | 334 String metricKey = in parseGfxInfoMetrics() local 339 Log.d(LOG_TAG, String.format("Did not find %s from %s", metricKey, packageName)); in parseGfxInfoMetrics() 341 results.put(metricKey, value); in parseGfxInfoMetrics()
|
D | SfStatsCollectionHelper.java | 100 String metricKey = constructKey(SFSTATS_METRICS_PREFIX, "GLOBAL", key.toUpperCase()); in getMetrics() local 101 results.put(metricKey, parseStatsValue(globalPairs.get(key))); in getMetrics()
|