Searched defs:metrics (Results 1 - 10 of 10) sorted by relevance

/cts/tests/jank/src/android/jank/cts/
H A DCtsJankTestBase.java35 public void afterTest(Bundle metrics) { argument
38 metrics.getDouble(WindowContentFrameStatsMonitor.KEY_AVG_FPS),
41 metrics.getDouble(WindowContentFrameStatsMonitor.KEY_AVG_LONGEST_FRAME),
44 metrics.getInt(WindowContentFrameStatsMonitor.KEY_MAX_NUM_JANKY),
47 metrics.getDouble(WindowContentFrameStatsMonitor.KEY_AVG_NUM_JANKY),
/cts/tests/leanbackjank/src/android/leanbackjank/cts/
H A DCtsJankTestBase.java36 private void printIntValueWithKey(String source, Bundle metrics, String key, argument
38 if (!metrics.containsKey(key)) {
41 mLog.addValue(source, key, metrics.getInt(key), resultType, resultUnit);
44 private void printDoubleValueWithKey(String source, Bundle metrics, String key, argument
46 if (!metrics.containsKey(key)) {
49 mLog.addValue(source, key, metrics.getDouble(key), resultType, resultUnit);
53 public void afterTest(Bundle metrics) { argument
55 printDoubleValueWithKey(source, metrics, WindowContentFrameStatsMonitor.KEY_AVG_FPS,
57 printDoubleValueWithKey(source, metrics,
60 printIntValueWithKey(source, metrics, WindowContentFrameStatsMonito
[all...]
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/
H A DApkInstrumentationPreparer.java140 public void testEnded(TestIdentifier test, Map<String, String> metrics) { argument
141 testMetrics.put(test, metrics);
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/
H A DModuleListener.java79 public void testEnded(TestIdentifier test, Map<String, String> metrics) { argument
80 CLog.d("ModuleListener.testEnded(%s, %s)", test.toString(), metrics.toString());
81 mListener.testEnded(test, metrics);
124 public void testRunEnded(long elapsedTime, Map<String, String> metrics) { argument
125 CLog.d("ModuleListener.testRunEnded(%d, %s)", elapsedTime, metrics.toString());
126 mListener.testRunEnded(elapsedTime, metrics);
H A DConsoleReporter.java146 public void testRunEnded(long elapsedTime, Map<String, String> metrics) { argument
H A DResultReporter.java271 public void testEnded(TestIdentifier test, Map<String, String> metrics) { argument
276 // device test can have performance results in test metrics
277 String perfResult = metrics.get(RESULT_KEY);
334 public void testRunEnded(long elapsedTime, Map<String, String> metrics) { argument
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
H A DDeviceInfoInstrument.java92 DisplayMetrics metrics = new DisplayMetrics();
96 d.getRealMetrics(metrics);
97 addResult(RESOLUTION, String.format("%sx%s", metrics.widthPixels, metrics.heightPixels));
98 addResult(SCREEN_DENSITY, metrics.density);
99 addResult(SCREEN_X_DENSITY, metrics.xdpi);
100 addResult(SCREEN_Y_DENSITY, metrics.ydpi);
102 String screenDensityBucket = getScreenDensityBucket(metrics);
236 private String getScreenDensityBucket(DisplayMetrics metrics) { argument
237 switch (metrics
[all...]
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/
H A DDeviceInfoResult.java88 // Extract metrics that need extra handling, and then dump the remainder into BuildInfo
127 // dump the remaining metrics without translation
148 private String getMetric(Map<String, String> metrics, String metricName ) { argument
149 String value = metrics.remove(metricName);
342 * Adds all attributes from the current XML tag to metrics as name-value pairs
352 * Populate the device info metrics with values collected from device.
354 * Check that the provided device info metrics are consistent with the currently stored metrics.
355 * If any inconsistencies occur, logs errors and stores error messages in the metrics map
357 public void populateMetrics(Map<String, String> metrics) { argument
379 combineMetrics(Map<String, String> metrics, String... keysToCombine) argument
401 checkMetrics(Map<String, String> metrics, String... keysToCheck) argument
[all...]
H A DIssueReporter.java146 private void setDeviceMetrics(Map<String, String> metrics) { argument
147 if (metrics.containsKey(BUILD_ID_KEY)) {
148 mBuildId = metrics.get(BUILD_ID_KEY);
150 if (metrics.containsKey(BUILD_TYPE_KEY)) {
151 mBuildType = metrics.get(BUILD_TYPE_KEY);
153 if (metrics.containsKey(PRODUCT_NAME_KEY)) {
154 mProductName = metrics.get(PRODUCT_NAME_KEY);
H A DTestPackageResult.java228 * Populate values in this package result from run metrics
229 * @param metrics A map of metrics from the completed test run.
231 public void populateMetrics(Map<String, String> metrics) { argument
232 String name = metrics.get(CtsTest.PACKAGE_NAME_METRIC);
236 String abi = metrics.get(CtsTest.PACKAGE_ABI_METRIC);
240 String digest = metrics.get(CtsTest.PACKAGE_DIGEST_METRIC);
244 mMetrics.putAll(metrics);
248 // device test can have performance results in test metrics
283 * @param testMetrics A map holding metrics abou
[all...]

Completed in 256 milliseconds