Home
last modified time | relevance | path

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

/sdk/apps/DeviceConfig/src/com/example/android/deviceconfig/
DMyActivity.java102 DisplayMetrics metrics = getResources().getDisplayMetrics(); in onCreate() local
107 int a = metrics.heightPixels; in onCreate()
108 int b = metrics.widthPixels; in onCreate()
114 tv.setText(String.format("%f", metrics.xdpi)); in onCreate()
118 tv.setText(String.format("%f", metrics.ydpi)); in onCreate()
123 tv.setText(String.format("%f", metrics.scaledDensity)); in onCreate()
DConfigGenerator.java167 DisplayMetrics metrics = resources.getDisplayMetrics(); in generateConfig() local
219 double xin = metrics.widthPixels / metrics.xdpi; in generateConfig()
220 double yin = metrics.heightPixels / metrics.ydpi; in generateConfig()
227 switch (metrics.densityDpi) { in generateConfig()
269 xDimension.appendChild(doc.createTextNode(Integer.toString(metrics.widthPixels))); in generateConfig()
273 yDimension.appendChild(doc.createTextNode(Integer.toString(metrics.heightPixels))); in generateConfig()
277 xdpi.appendChild(doc.createTextNode(Double.toString(metrics.xdpi))); in generateConfig()
281 ydpi.appendChild(doc.createTextNode(Double.toString(metrics.ydpi))); in generateConfig()
/sdk/ddms/libs/ddmlib/src/com/android/ddmlib/testrunner/
DInstrumentationResultParser.java446 Map<String, String> metrics; in reportResult() local
455 metrics = getAndResetTestMetrics(); in reportResult()
460 listener.testEnded(testId, metrics); in reportResult()
465 metrics = getAndResetTestMetrics(); in reportResult()
469 listener.testEnded(testId, metrics); in reportResult()
474 metrics = getAndResetTestMetrics(); in reportResult()
476 listener.testEnded(testId, metrics); in reportResult()
481 metrics = getAndResetTestMetrics(); in reportResult()
484 listener.testEnded(testId, metrics); in reportResult()