Searched refs:sdensity (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | NinePatchDrawable.java | 183 private static Insets scaleFromDensity(Insets insets, int sdensity, int tdensity) { in scaleFromDensity() argument 184 int left = Bitmap.scaleFromDensity(insets.left, sdensity, tdensity); in scaleFromDensity() 185 int top = Bitmap.scaleFromDensity(insets.top, sdensity, tdensity); in scaleFromDensity() 186 int right = Bitmap.scaleFromDensity(insets.right, sdensity, tdensity); in scaleFromDensity() 187 int bottom = Bitmap.scaleFromDensity(insets.bottom, sdensity, tdensity); in scaleFromDensity() 192 final int sdensity = mNinePatch.getDensity(); in computeBitmapSize() local 194 if (sdensity == tdensity) { in computeBitmapSize() 199 mBitmapWidth = Bitmap.scaleFromDensity(mNinePatch.getWidth(), sdensity, tdensity); in computeBitmapSize() 200 mBitmapHeight = Bitmap.scaleFromDensity(mNinePatch.getHeight(), sdensity, tdensity); in computeBitmapSize() 207 dest.left = Bitmap.scaleFromDensity(src.left, sdensity, tdensity); in computeBitmapSize() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | Bitmap.java | 1144 static public int scaleFromDensity(int size, int sdensity, int tdensity) { in scaleFromDensity() argument 1145 if (sdensity == DENSITY_NONE || tdensity == DENSITY_NONE || sdensity == tdensity) { in scaleFromDensity() 1150 return ((size * tdensity) + (sdensity >> 1)) / sdensity; in scaleFromDensity()
|