Searched refs:sdensity (Results 1 – 2 of 2) sorted by relevance
122 private static int scaleFromDensity(int size, int sdensity, int tdensity) { in scaleFromDensity() argument123 if (sdensity == tdensity) { in scaleFromDensity()128 return ((size * tdensity) + (sdensity >> 1)) / sdensity; in scaleFromDensity()
1221 static public int scaleFromDensity(int size, int sdensity, int tdensity) { in scaleFromDensity() argument1222 if (sdensity == DENSITY_NONE || tdensity == DENSITY_NONE || sdensity == tdensity) { in scaleFromDensity()1227 return ((size * tdensity) + (sdensity >> 1)) / sdensity; in scaleFromDensity()