Home
last modified time | relevance | path

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

/frameworks/support/v4/tests/java/android/support/v4/content/
DContextCompatTest.java122 private static int scaleFromDensity(int size, int sdensity, int tdensity) { in scaleFromDensity() argument
123 if (sdensity == tdensity) { in scaleFromDensity()
128 return ((size * tdensity) + (sdensity >> 1)) / sdensity; in scaleFromDensity()
/frameworks/base/graphics/java/android/graphics/
DBitmap.java1221 static public int scaleFromDensity(int size, int sdensity, int tdensity) { in scaleFromDensity() argument
1222 if (sdensity == DENSITY_NONE || tdensity == DENSITY_NONE || sdensity == tdensity) { in scaleFromDensity()
1227 return ((size * tdensity) + (sdensity >> 1)) / sdensity; in scaleFromDensity()