Searched refs:sdensity (Results 1 – 2 of 2) sorted by relevance
125 public static int scaleBitmapFromDensity(int size, int sdensity, int tdensity) { in scaleBitmapFromDensity() argument126 if (sdensity == 0 || tdensity == 0 || sdensity == tdensity) { in scaleBitmapFromDensity()131 return ((size * tdensity) + (sdensity >> 1)) / sdensity; in scaleBitmapFromDensity()
1012 private int scaleFromDensity(int size, int sdensity, int tdensity) { in scaleFromDensity() argument1013 if (sdensity == Bitmap.DENSITY_NONE || sdensity == tdensity) { in scaleFromDensity()1018 return ((size * tdensity) + (sdensity >> 1)) / sdensity; in scaleFromDensity()