Home
last modified time | relevance | path

Searched refs:tdensity (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTestUtils.java141 public static int scaleBitmapFromDensity(int size, int sdensity, int tdensity) { in scaleBitmapFromDensity() argument
142 if (sdensity == 0 || tdensity == 0 || sdensity == tdensity) { in scaleBitmapFromDensity()
147 return ((size * tdensity) + (sdensity >> 1)) / sdensity; in scaleBitmapFromDensity()
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapTest.java2199 private static int scaleFromDensity(int size, int sdensity, int tdensity) { in scaleFromDensity() argument
2200 if (sdensity == Bitmap.DENSITY_NONE || sdensity == tdensity) { in scaleFromDensity()
2205 return ((size * tdensity) + (sdensity >> 1)) / sdensity; in scaleFromDensity()