Home
last modified time | relevance | path

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

123

/platform_testing/libraries/collectors-helper/jank/test/src/com/android/helpers/
DSfStatsCollectionHelperTest.java151 Map<String, Double> metrics = mHelper.getMetrics(); in testCollect_valuesMatch() local
153 metrics.get( in testCollect_valuesMatch()
160 metrics.get( in testCollect_valuesMatch()
167 metrics.get( in testCollect_valuesMatch()
174 metrics.get( in testCollect_valuesMatch()
181 metrics.get( in testCollect_valuesMatch()
188 metrics.get( in testCollect_valuesMatch()
195 metrics.get( in testCollect_valuesMatch()
202 metrics.get( in testCollect_valuesMatch()
209 metrics.get( in testCollect_valuesMatch()
[all …]
DJankCollectionHelperTest.java115 Map<String, Double> metrics = mHelper.getMetrics(); in testCollect_valuesMatch() local
116 assertThat(metrics.get(buildMetricKey("pkg1", TOTAL_FRAMES.getMetricId()))) in testCollect_valuesMatch()
118 assertThat(metrics.get(buildMetricKey("pkg1", JANKY_FRAMES_COUNT.getMetricId()))) in testCollect_valuesMatch()
120 assertThat(metrics.get(buildMetricKey("pkg1", JANKY_FRAMES_PRCNT.getMetricId()))) in testCollect_valuesMatch()
122 assertThat(metrics.get(buildMetricKey("pkg1", JANKY_FRAMES_LEGACY_COUNT.getMetricId()))) in testCollect_valuesMatch()
124 assertThat(metrics.get(buildMetricKey("pkg1", JANKY_FRAMES_LEGACY_PRCNT.getMetricId()))) in testCollect_valuesMatch()
126 assertThat(metrics.get(buildMetricKey("pkg1", FRAME_TIME_50TH.getMetricId()))) in testCollect_valuesMatch()
128 assertThat(metrics.get(buildMetricKey("pkg1", FRAME_TIME_90TH.getMetricId()))) in testCollect_valuesMatch()
130 assertThat(metrics.get(buildMetricKey("pkg1", FRAME_TIME_95TH.getMetricId()))) in testCollect_valuesMatch()
132 assertThat(metrics.get(buildMetricKey("pkg1", FRAME_TIME_99TH.getMetricId()))) in testCollect_valuesMatch()
[all …]
/platform_testing/libraries/collectors-helper/lyric/test/src/com/android/helpers/
DLyricCpuUtilizationHelperTest.java59 Map<String, Double> metrics = LyricCpuUtilizationHelper.processOutput(testString); in testProcessOutput() local
62 assertThat(metrics.get(String.format(METRIC_KEY, node, "number_of_invocations"))) in testProcessOutput()
65 assertThat(metrics.get(String.format(METRIC_KEY, node, "user_time"))) in testProcessOutput()
68 assertThat(metrics.get(String.format(METRIC_KEY, node, "user_time"))) in testProcessOutput()
71 assertThat(metrics.get(String.format(METRIC_KEY, node, "user_time_max"))) in testProcessOutput()
74 assertThat(metrics.get(String.format(METRIC_KEY, node, "user_time_min"))) in testProcessOutput()
77 assertThat(metrics.get(String.format(METRIC_KEY, node, "system_time"))) in testProcessOutput()
80 assertThat(metrics.get(String.format(METRIC_KEY, node, "system_time_max"))) in testProcessOutput()
83 assertThat(metrics.get(String.format(METRIC_KEY, node, "system_time_min"))) in testProcessOutput()
86 assertThat(metrics.get(String.format(METRIC_KEY, node, "wall_time"))) in testProcessOutput()
[all …]
/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/
DShowmapSnapshotHelperTest.java109 Map<String, String> metrics = mShowmapSnapshotHelper.getMetrics(); in testEmptyProcessName() local
110 assertTrue(metrics.isEmpty()); in testEmptyProcessName()
156 Map<String, String> metrics = mShowmapSnapshotHelper.getMetrics(); in testGetMetrics_AllProcess() local
157 assertTrue(metrics.size() > 2); in testGetMetrics_AllProcess()
158 assertTrue(metrics.containsKey(ShowmapSnapshotHelper.OUTPUT_FILE_PATH_KEY)); in testGetMetrics_AllProcess()
174 Map<String, String> metrics = mShowmapSnapshotHelper.getMetrics(); in testGetMetrics_Invalid_Metric_Pattern() local
177 assertTrue(verifyDefaultMetrics(metrics)); in testGetMetrics_Invalid_Metric_Pattern()
187 Map<String, String> metrics = mShowmapSnapshotHelper.getMetrics(); in testGetMetrics_Empty_Metric_Pattern() local
190 assertTrue(verifyDefaultMetrics(metrics)); in testGetMetrics_Empty_Metric_Pattern()
200 Map<String, String> metrics = mShowmapSnapshotHelper.getMetrics(); in testGetMetrics_verify_child_processes_metrics() local
[all …]
DPinnerHelperTest.java106 Map<String, String> metrics = mPinnerHelper.getMetrics(); in testPinnerSnapshotDumpFile() local
107 assertTrue(metrics.size() > 2); in testPinnerSnapshotDumpFile()
108 assertTrue(metrics.containsKey(PinnerHelper.OUTPUT_FILE_PATH_KEY)); in testPinnerSnapshotDumpFile()
118 Map<String, String> metrics = mPinnerHelper.getMetrics(); in testPinnerTotalFileSizeMetric() local
119 assertTrue(metrics.size() > 2); in testPinnerTotalFileSizeMetric()
120 assertTrue(metrics.containsKey(PinnerHelper.TOTAL_SIZE_BYTES_KEY)); in testPinnerTotalFileSizeMetric()
130 Map<String, String> metrics = mPinnerHelper.getMetrics(); in testSystemFileSizeMetrics() local
131 List<String> systemMetricKeys = metrics.keySet() in testSystemFileSizeMetrics()
145 Map<String, String> metrics = mPinnerHelper.getMetrics(); in testIndividualAppFileSizeMetrics() local
146 List<String> appPinnedFilesKeys = metrics.keySet() in testIndividualAppFileSizeMetrics()
[all …]
/platform_testing/libraries/collectors-helper/lyric/src/com/android/helpers/
DLyricCpuUtilizationHelper.java93 Map<String, Double> metrics = new HashMap<>(); in processOutput() local
96 metrics.putAll(processMatch(matcher)); in processOutput()
98 return metrics; in processOutput()
102 Map<String, Double> metrics = new HashMap<>(); in processMatch() local
104 metrics.put( in processMatch()
107 metrics.put(String.format(METRIC_KEY, node, "system_time"), parseTime(matcher.group(3))); in processMatch()
108 metrics.put( in processMatch()
110 metrics.put( in processMatch()
112 metrics.put(String.format(METRIC_KEY, node, "user_time"), parseTime(matcher.group(6))); in processMatch()
113 metrics.put(String.format(METRIC_KEY, node, "user_time_max"), parseTime(matcher.group(7))); in processMatch()
[all …]
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/
DDumpsysMeminfoHelper.java79 Map<String, Long> metrics = new HashMap<>(); in getMetrics() local
86 metrics.putAll(parseMetrics(processName, rawOutput)); in getMetrics()
88 return metrics; in getMetrics()
111 Map<String, Long> metrics = new HashMap<>(); in parseMetrics() local
116 putHeapMetrics(metrics, processMemory.nativeHeap, NATIVE_HEAP, processName); in parseMetrics()
117 putHeapMetrics(metrics, processMemory.dalvikHeap, DALVIK_HEAP, processName); in parseMetrics()
119 metrics, in parseMetrics()
128 return metrics; in parseMetrics()
153 Map<String, Long> metrics, in putHeapMetrics() argument
160 putHeapMetric(metrics, heapInfo.memInfo.totalPssKb, heapName, PSS_TOTAL, processName); in putHeapMetrics()
[all …]
DProcessShowmapHelper.java143 ShowmapMetrics[] metrics = new ShowmapMetrics[processNames.length]; in sampleMemoryOfProcesses() local
145 metrics[i] = sampleMemory(processNames[i]); in sampleMemoryOfProcesses()
147 return metrics; in sampleMemoryOfProcesses()
177 ShowmapMetrics metrics = new ShowmapMetrics(); in sampleMemory() local
191 metrics.vss = sc.nextLong(); in sampleMemory()
192 metrics.rss = sc.nextLong(); in sampleMemory()
193 metrics.pss = sc.nextLong(); in sampleMemory()
198 return metrics; in sampleMemory()
/platform_testing/libraries/system-helpers/device-helper/src/android/system/helpers/
DDeviceHelper.java60 DisplayMetrics metrics = new DisplayMetrics(); in isTablet() local
61 wm.getDefaultDisplay().getMetrics(metrics); in isTablet()
65 int screenDensity = metrics.densityDpi; in isTablet()
67 metrics.widthPixels, metrics.heightPixels); in isTablet()
69 metrics.widthPixels, metrics.heightPixels); in isTablet()
/platform_testing/tests/jank/UbSystemUiJankTests/src/android/platform/systemui/tests/jank/
DLauncherJankTests.java102 public void afterTestOpenAllAppsContainer(Bundle metrics) throws IOException { in afterTestOpenAllAppsContainer() argument
106 getClass().getSimpleName(), getName()), RESULTS_FILE, metrics); in afterTestOpenAllAppsContainer()
107 super.afterTest(metrics); in afterTestOpenAllAppsContainer()
127 public void afterTestAllAppsContainerSwipe(Bundle metrics) throws IOException { in afterTestAllAppsContainerSwipe() argument
131 getClass().getSimpleName(), getName()), RESULTS_FILE, metrics); in afterTestAllAppsContainerSwipe()
132 super.afterTest(metrics); in afterTestAllAppsContainerSwipe()
153 public void afterTestHomeScreenSwipe(Bundle metrics) throws IOException { in afterTestHomeScreenSwipe() argument
157 getClass().getSimpleName(), getName()), RESULTS_FILE, metrics); in afterTestHomeScreenSwipe()
158 super.afterTest(metrics); in afterTestHomeScreenSwipe()
179 public void afterTestWidgetsContainerFling(Bundle metrics) throws IOException { in afterTestWidgetsContainerFling() argument
[all …]
DSystemUiJankTests.java175 public void forceStopPackages(Bundle metrics) throws IOException { in forceStopPackages() argument
181 getClass().getSimpleName(), getName()), RESULTS_FILE, metrics); in forceStopPackages()
182 super.afterTest(metrics); in forceStopPackages()
405 public void afterNotificationListPull(Bundle metrics) throws Exception { in afterNotificationListPull() argument
410 getClass().getSimpleName(), getName()), RESULTS_FILE, metrics); in afterNotificationListPull()
411 super.afterTest(metrics); in afterNotificationListPull()
437 public void afterNotificationListScroll(Bundle metrics) throws Exception { in afterNotificationListScroll() argument
445 getClass().getSimpleName(), getName()), RESULTS_FILE, metrics); in afterNotificationListScroll()
446 super.afterTest(metrics); in afterNotificationListScroll()
495 public void afterQuickSettings(Bundle metrics) throws Exception { in afterQuickSettings() argument
[all …]
/platform_testing/libraries/device-collectors/src/main/platform-collectors/res/statsd-configs/
DREADME.md7 A config tells statsd what metrics to collect from the device during a test. For example,
8 `app-start` will instruct statsd to collect app startup metrics.
12 To check in config(s) for a new set of metrics, follow these steps:
14 1. Create a directory under this directory for the new metrics (e.g. `app-start`).
16 suffixes if there are multiple configs related to the overarching metrics, with `.pb` extension.
28 [Add your metrics to a config](http://go/westworld-modulefooding#add-your-metrics-to-a-config)
/platform_testing/tests/jank/touch_latency_wear/src/com/android/wearable/touch/janktests/
DBouncingBallJankTest.java49 public void goBackHome(Bundle metrics) { in goBackHome() argument
51 super.afterTest(metrics); in goBackHome()
/platform_testing/libraries/device-collectors/src/main/platform-collectors/res/statsd-configs/full-battery-capacity/
DREADME.md3 These statsd configs collects FullBatteryCapacity metrics.
/platform_testing/libraries/device-collectors/src/main/platform-collectors/res/statsd-configs/app-start/
DREADME.md3 This statsd config collects app startup metrics.
/platform_testing/libraries/collectors-helper/system/src/com/android/helpers/
DDumpsysServiceHelper.java69 Map<String, String> metrics = new HashMap<>(); in getMetrics() local
72 metrics.put(String.format(DUMPSYS_SERVICE_KEY, serviceName), outputPath); in getMetrics()
74 return metrics; in getMetrics()
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/
DThermalHelperTest.java107 Map<String, StringBuilder> metrics = mThermalHelper.getMetrics(); in testSingleEvent() local
109 metrics.get(THROTTLING_KEY).toString(), in testSingleEvent()
137 Map<String, StringBuilder> metrics = mThermalHelper.getMetrics(); in testMultipleDifferentEvents() local
139 metrics.get(THROTTLING_KEY).toString(), in testMultipleDifferentEvents()
156 Map<String, StringBuilder> metrics = mThermalHelper.getMetrics(); in testParseTemperature() local
161 for (String key : metrics.keySet()) { in testParseTemperature()
/platform_testing/tests/jank/sysapp_wear/src/com/android/wearable/sysapp/janktests/
DWatchFacePickerJankTest.java142 public void removeAllButOneWatchFace(Bundle metrics) { in removeAllButOneWatchFace() argument
144 super.afterTest(metrics); in removeAllButOneWatchFace()
167 public void goBackHome(Bundle metrics) { in goBackHome() argument
170 super.afterTest(metrics); in goBackHome()
DCardsJankTest.java80 public void goBackHome(Bundle metrics) { in goBackHome() argument
82 super.afterTest(metrics); in goBackHome()
DWatchFaceJankTest.java80 public void removeAllButOneWatchFace(Bundle metrics) { in removeAllButOneWatchFace() argument
82 super.afterTest(metrics); in removeAllButOneWatchFace()
/platform_testing/libraries/device-collectors/src/main/platform-collectors/res/statsd-configs/app-compact/
DREADME.md3 This config collects app compaction metrics. Please see the `AppCompacted` atom in statsd's
/platform_testing/libraries/device-collectors/src/main/platform-collectors/res/statsd-configs/greenday-power-smaller/
DREADME.md3 Configs for a smaller set of power metrics : CPUTimePerFreq, MobileBytesTransfer, RemainingBatteryC…
/platform_testing/libraries/device-collectors/src/main/platform-collectors/res/statsd-configs/greenday-power/
DREADME.md3 Configs for the following power metrics : CPUClusterTime, CPUTimePerFreq, CPUTimePerThreadFreq, CPU…
/platform_testing/libraries/collectors-helper/power/test/src/com/android/helpers/
DPwrStatsUtilHelperTest.java71 Map<String, Long> metrics = mHelper.getMetrics(); in successfulRun() local
72 assertEquals(metrics.size(), 4); in successfulRun()
/platform_testing/tests/jank/androidtvjanktests/src/com/android/androidtv/janktests/
DSystemUiJankTests.java77 public void afterTestHomeScreenNavigation(Bundle metrics) throws IOException { in afterTestHomeScreenNavigation() argument
78 super.afterTest(metrics); in afterTestHomeScreenNavigation()
100 public void afterTestSettings(Bundle metrics) throws IOException { in afterTestSettings() argument
103 super.afterTest(metrics); in afterTestSettings()

123