Searched refs:tdensity (Results 1 – 2 of 2) sorted by relevance
141 public static int scaleBitmapFromDensity(int size, int sdensity, int tdensity) { in scaleBitmapFromDensity() argument142 if (sdensity == 0 || tdensity == 0 || sdensity == tdensity) { in scaleBitmapFromDensity()147 return ((size * tdensity) + (sdensity >> 1)) / sdensity; in scaleBitmapFromDensity()
2199 private static int scaleFromDensity(int size, int sdensity, int tdensity) { in scaleFromDensity() argument2200 if (sdensity == Bitmap.DENSITY_NONE || sdensity == tdensity) { in scaleFromDensity()2205 return ((size * tdensity) + (sdensity >> 1)) / sdensity; in scaleFromDensity()