Searched refs:metrics (Results 1 – 3 of 3) sorted by relevance
102 DisplayMetrics metrics = getResources().getDisplayMetrics(); in onCreate() local107 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()
167 DisplayMetrics metrics = resources.getDisplayMetrics(); in generateConfig() local219 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()
446 Map<String, String> metrics; in reportResult() local455 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()