/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/ |
D | StatsdStatsHelper.java | 104 MetricUtility.constructKey(STATSDSTATS_PREFIX, ATOM_STATS_PREFIX); in populateAtomStats() 111 MetricUtility.constructKey(metricKeyPrefix, String.valueOf(dataItem.tag)); in populateAtomStats() 114 MetricUtility.constructKey(metricKeyPrefixWithTag, "count"), in populateAtomStats() 117 MetricUtility.constructKey(metricKeyPrefixWithTag, "error_count"), in populateAtomStats() 125 MetricUtility.constructKey(metricKeyPrefix, "count"), Long.valueOf(summaryCount)); in populateAtomStats() 127 MetricUtility.constructKey(metricKeyPrefix, "error_count"), in populateAtomStats() 134 MetricUtility.constructKey(STATSDSTATS_PREFIX, CONFIG_STATS_PREFIX); in populateConfigStats() 138 MetricUtility.constructKey(metricKeyPrefix, String.valueOf(dataItem.id)); in populateConfigStats() 141 MetricUtility.constructKey(metricKeyPrefixWithTag, "metric_count"), in populateConfigStats() 144 MetricUtility.constructKey(metricKeyPrefixWithTag, "condition_count"), in populateConfigStats() [all …]
|
D | UiInteractionFrameInfoHelper.java | 20 import static com.android.helpers.MetricUtility.constructKey; 96 constructKey(KEY_PREFIX_CUJ, interactionType, "total_frames"), in getMetrics() 101 constructKey(KEY_PREFIX_CUJ, interactionType, "missed_frames"), in getMetrics() 106 constructKey(KEY_PREFIX_CUJ, interactionType, "sf_missed_frames"), in getMetrics() 111 constructKey(KEY_PREFIX_CUJ, interactionType, "app_missed_frames"), in getMetrics() 116 constructKey(KEY_PREFIX_CUJ, interactionType, SUFFIX_MAX_FRAME_MS), in getMetrics() 122 constructKey(KEY_PREFIX_CUJ, interactionType, "max_successive_misses"), in getMetrics()
|
D | AppStartupHelper.java | 128 metricTypeKey = MetricUtility.constructKey(typeKey, pkgName); in getMetrics() 129 metricCountKey = MetricUtility.constructKey(typeKey, COUNT, pkgName); in getMetrics() 130 totalCountKey = MetricUtility.constructKey(typeKey, TOTAL_COUNT); in getMetrics() 138 metricTransitionKey = MetricUtility.constructKey(typeKey, in getMetrics() 148 String metricEventDelayKey = MetricUtility.constructKey( in getMetrics() 165 metricKey = MetricUtility.constructKey( in getMetrics() 169 metricKey = MetricUtility.constructKey( in getMetrics() 173 metricKey = MetricUtility.constructKey( in getMetrics() 177 metricKey = MetricUtility.constructKey( in getMetrics() 223 metricKey = MetricUtility.constructKey(typeKey, in getMetrics() [all …]
|
D | ThermalHelper.java | 106 String severityKey = MetricUtility.constructKey("thermal", "throttling", "severity"); in getMetrics() 142 MetricUtility.constructKey( in updateTemperatureMetrics() 147 MetricUtility.constructKey( in updateTemperatureMetrics() 152 MetricUtility.constructKey( in updateTemperatureMetrics() 182 MetricUtility.constructKey(METRIC_KEY_TEMPERATURE, name, METRIC_KEY_VALUE); in getTemperature()
|
D | CrashHelper.java | 88 MetricUtility.constructKey( in getMetrics() 105 MetricUtility.constructKey( in getMetrics()
|
D | UiActionLatencyHelper.java | 65 MetricUtility.constructKey("latency", action), in getMetrics()
|
D | CpuUsageHelper.java | 113 String UserTimeKey = MetricUtility.constructKey(CPU_USAGE_PKG_UID, in getMetrics() 116 String SystemTimeKey = MetricUtility.constructKey(CPU_USAGE_PKG_UID, in getMetrics()
|
/platform_testing/libraries/collectors-helper/jank/test/src/com/android/helpers/ |
D | SfStatsCollectionHelperTest.java | 18 import static com.android.helpers.MetricUtility.constructKey; 154 constructKey( in testCollect_valuesMatch() 161 constructKey( in testCollect_valuesMatch() 168 constructKey( in testCollect_valuesMatch() 175 constructKey( in testCollect_valuesMatch() 182 constructKey( in testCollect_valuesMatch() 189 constructKey( in testCollect_valuesMatch() 196 constructKey( in testCollect_valuesMatch() 203 constructKey( in testCollect_valuesMatch() 210 constructKey( in testCollect_valuesMatch() [all …]
|
D | JankCollectionHelperTest.java | 36 import static com.android.helpers.MetricUtility.constructKey; 521 return constructKey(JankCollectionHelper.GFXINFO_METRICS_PREFIX, pkg, id); in buildMetricKey()
|
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/ |
D | StatsdStatsHelperTest.java | 260 MetricUtility.constructKey( in verifyAtomStats() 266 result.get(MetricUtility.constructKey(metricKeyPrefix, "count")), in verifyAtomStats() 269 result.get(MetricUtility.constructKey(metricKeyPrefix, "error_count")), in verifyAtomStats() 278 MetricUtility.constructKey( in verifyConfigAlertStats() 291 MetricUtility.constructKey( in verifyConfigMatcherStats() 304 MetricUtility.constructKey( in verifyConfigConditionStats() 317 MetricUtility.constructKey( in verifyConfigMetricStats() 336 MetricUtility.constructKey( in verifyConfigStats() 342 MetricUtility.constructKey(metricKeyPrefix, "metric_count"); in verifyConfigStats() 346 MetricUtility.constructKey(metricKeyPrefix, "condition_count"); in verifyConfigStats() [all …]
|
D | ThermalHelperTest.java | 52 MetricUtility.constructKey("thermal", "throttling", "severity"); 329 return MetricUtility.constructKey( in getMetricKey()
|
/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/ |
D | TotalPssHelperTest.java | 19 import static com.android.helpers.MetricUtility.constructKey; 81 assertTrue(pssMetrics.containsKey(constructKey(PSS_METRIC_PREFIX, TEST_PROCESS_NAME))); in testGetMetrics_OneProcess() 82 assertTrue(pssMetrics.get(constructKey(PSS_METRIC_PREFIX, TEST_PROCESS_NAME)) > 0); in testGetMetrics_OneProcess() 91 assertTrue(pssMetrics.containsKey(constructKey(PSS_METRIC_PREFIX, TEST_PROCESS_NAME))); in testGetMetrics_MultipleProcesses() 92 assertTrue(pssMetrics.containsKey(constructKey(PSS_METRIC_PREFIX, TEST_PROCESS_NAME_2))); in testGetMetrics_MultipleProcesses() 93 assertTrue(pssMetrics.get(constructKey(PSS_METRIC_PREFIX, TEST_PROCESS_NAME)) > 0); in testGetMetrics_MultipleProcesses() 94 assertTrue(pssMetrics.get(constructKey(PSS_METRIC_PREFIX, TEST_PROCESS_NAME_2)) > 0); in testGetMetrics_MultipleProcesses() 102 assertTrue(pssMetrics.containsKey(constructKey(PSS_METRIC_PREFIX, INVALID_PROCESS_NAME))); in testGetMetrics_InvalidProcess() 103 assertTrue(pssMetrics.get(constructKey(PSS_METRIC_PREFIX, INVALID_PROCESS_NAME)) == 0); in testGetMetrics_InvalidProcess()
|
D | ProcessShowmapHelperTest.java | 19 import static com.android.helpers.MetricUtility.constructKey; 92 assertTrue(showmapMetrics.containsKey(constructKey(TEST_PROCESS_NAME, PSS))); in testGetMetrics_OneProcess() 93 assertTrue(showmapMetrics.containsKey(constructKey(TEST_PROCESS_NAME, PSS, DELTA))); in testGetMetrics_OneProcess() 102 assertTrue(showmapMetrics.containsKey(constructKey(TEST_PROCESS_NAME, PSS))); in testGetMetrics_MultipleProcesses() 103 assertTrue(showmapMetrics.containsKey(constructKey(TEST_PROCESS_NAME, PSS, DELTA))); in testGetMetrics_MultipleProcesses() 104 assertTrue(showmapMetrics.containsKey(constructKey(TEST_PROCESS_NAME_2, PSS))); in testGetMetrics_MultipleProcesses() 105 assertTrue(showmapMetrics.containsKey(constructKey(TEST_PROCESS_NAME_2, PSS, DELTA))); in testGetMetrics_MultipleProcesses()
|
D | ShowmapSnapshotHelperTest.java | 19 import static com.android.helpers.MetricUtility.constructKey; 197 constructKey( in testGetMetrics_MixedProcess() 205 constructKey( in testGetMetrics_MixedProcess() 229 constructKey( in testGetMetrics_CachedProcess() 237 constructKey( in testGetMetrics_CachedProcess() 387 metrics.containsKey(constructKey(String.format( in testProcessList() 390 metrics.containsKey(constructKey(String.format( in testProcessList()
|
D | DumpsysMeminfoHelperTest.java | 218 MetricUtility.constructKey( in verifyKeysForProcess() 224 MetricUtility.constructKey( in verifyKeysForProcess()
|
/platform_testing/libraries/collectors-helper/system/test/src/com/android/helpers/tests/ |
D | TimeInStateHelperTest.java | 57 private String constructKey(String key, String freq) { in constructKey() method in TimeInStateHelperTest 100 assertEquals(results.get(constructKey(key1, "10000")).longValue(), 100L); in testCollectTimeInState_oneSource() 101 assertEquals(results.get(constructKey(key1, "35000")).longValue(), 100L); in testCollectTimeInState_oneSource() 102 assertEquals(results.get(constructKey(key1, AVG_FREQ_KEY_SUFFIX)).longValue(), 22500L); in testCollectTimeInState_oneSource() 125 assertEquals(results.get(constructKey(key1, "10000")).longValue(), 50L); in testCollectTimeInState_multipleSources() 126 assertEquals(results.get(constructKey(key1, "150000")).longValue(), 50L); in testCollectTimeInState_multipleSources() 127 assertEquals(results.get(constructKey(key1, AVG_FREQ_KEY_SUFFIX)).longValue(), 80000L); in testCollectTimeInState_multipleSources() 128 assertEquals(results.get(constructKey(key2, "250000")).longValue(), 80L); in testCollectTimeInState_multipleSources() 129 assertEquals(results.get(constructKey(key2, "750000")).longValue(), 20L); in testCollectTimeInState_multipleSources() 130 assertEquals(results.get(constructKey(key2, AVG_FREQ_KEY_SUFFIX)).longValue(), 350000L); in testCollectTimeInState_multipleSources()
|
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/ |
D | ProcessShowmapHelper.java | 19 import static com.android.helpers.MetricUtility.constructKey; 106 showmapFinalMap.put(constructKey(processName, PSS), endMetrics.pss); in getMetrics() 107 showmapFinalMap.put(constructKey(processName, RSS), endMetrics.rss); in getMetrics() 108 showmapFinalMap.put(constructKey(processName, VSS), endMetrics.vss); in getMetrics() 116 constructKey(processName, PSS, DELTA), endMetrics.pss - startMetrics.pss); in getMetrics() 118 constructKey(processName, RSS, DELTA), endMetrics.rss - startMetrics.rss); in getMetrics() 120 constructKey(processName, VSS, DELTA), endMetrics.vss - startMetrics.vss); in getMetrics()
|
D | TotalPssHelper.java | 19 import static com.android.helpers.MetricUtility.constructKey; 114 mPssFinalMap.put(constructKey(PSS_METRIC_PREFIX, processName), pss * 1024); in measureMemory() 123 mPssFinalMap.put(constructKey(PSS_METRIC_PREFIX, processName), average(pssData) * 1024); in measureMemory()
|
D | ShowmapSnapshotHelper.java | 19 import static com.android.helpers.MetricUtility.constructKey; 441 constructKey(String.format(metricPattern, entry.getKey()), processName); in parseAndUpdateMemoryInfo()
|
/platform_testing/libraries/collectors-helper/app/test/src/com/android/helpers/tests/ |
D | AppVersionHelperTest.java | 19 import static com.android.helpers.MetricUtility.constructKey; 85 String metricKey = constructKey(METRIC_PREFIX, TEST_PACKAGE_NAME); in testGetMetrics_OnePackage() 98 String metricKey1 = constructKey(METRIC_PREFIX, TEST_PACKAGE_NAME); in testGetMetrics_MultiplePackages() 99 String metricKey2 = constructKey(METRIC_PREFIX, TEST_PACKAGE_NAME_2); in testGetMetrics_MultiplePackages()
|
/platform_testing/libraries/collectors-helper/app/src/com/android/helpers/ |
D | AppVersionHelper.java | 19 import static com.android.helpers.MetricUtility.constructKey; 64 metrics.put(constructKey(METRIC_PREFIX, pkgInfo.packageName), in getMetrics() 72 metrics.put(constructKey(METRIC_PREFIX, pkg), in getMetrics()
|
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/ |
D | SfStatsCollectionHelper.java | 18 import static com.android.helpers.MetricUtility.constructKey; 100 String metricKey = constructKey(SFSTATS_METRICS_PREFIX, "GLOBAL", key.toUpperCase()); in getMetrics() 106 constructKey(SFSTATS_METRICS_PREFIX, "GLOBAL", "FRAME_CPU_DURATION_AVG"), in getMetrics() 112 constructKey(SFSTATS_METRICS_PREFIX, "GLOBAL", "RENDER_ENGINE_DURATION_AVG"), in getMetrics() 125 constructKey(SFSTATS_METRICS_PREFIX, layerName, "TOTAL_FRAMES"), in getMetrics() 133 constructKey(SFSTATS_METRICS_PREFIX, layerName, "DROPPED_FRAMES"), in getMetrics() 141 constructKey(SFSTATS_METRICS_PREFIX, layerName, "AVERAGE_FPS"), in getMetrics()
|
D | JankCollectionHelper.java | 19 import static com.android.helpers.MetricUtility.constructKey; 332 constructKey(GFXINFO_METRICS_PREFIX, packageName, metric.getMetricId()); in parseGfxInfoMetrics()
|
/platform_testing/libraries/collectors-helper/system/src/com/android/helpers/ |
D | TimeInStateHelper.java | 19 import static com.android.helpers.MetricUtility.constructKey; 172 String metricsPrefixKey = constructKey(METRIC_KEY_PREFIX, mMetricKeys.get(i)); in calculateFreqStatsMetrics() 184 String metricsKey = constructKey(metricsPrefixKey, freq); in calculateFreqStatsMetrics() 190 String avgFreqMetricsKey = constructKey(metricsPrefixKey, AVG_FREQ_KEY_SUFFIX); in calculateFreqStatsMetrics()
|
/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/ |
D | MetricUtility.java | 37 public static String constructKey(String... keys) { in constructKey() method in MetricUtility
|