Home
last modified time | relevance | path

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

/frameworks/base/graphics/java/android/graphics/drawable/
DNinePatchDrawable.java186 private static Insets scaleFromDensity(Insets insets, int sdensity, int tdensity) { in scaleFromDensity() argument
187 int left = Bitmap.scaleFromDensity(insets.left, sdensity, tdensity); in scaleFromDensity()
188 int top = Bitmap.scaleFromDensity(insets.top, sdensity, tdensity); in scaleFromDensity()
189 int right = Bitmap.scaleFromDensity(insets.right, sdensity, tdensity); in scaleFromDensity()
190 int bottom = Bitmap.scaleFromDensity(insets.bottom, sdensity, tdensity); in scaleFromDensity()
196 final int tdensity = mTargetDensity; in computeBitmapSize() local
197 if (sdensity == tdensity) { in computeBitmapSize()
202 mBitmapWidth = Bitmap.scaleFromDensity(mNinePatch.getWidth(), sdensity, tdensity); in computeBitmapSize()
203 mBitmapHeight = Bitmap.scaleFromDensity(mNinePatch.getHeight(), sdensity, tdensity); in computeBitmapSize()
210 dest.left = Bitmap.scaleFromDensity(src.left, sdensity, tdensity); in computeBitmapSize()
[all …]
/frameworks/base/graphics/java/android/graphics/
DBitmap.java1131 static public int scaleFromDensity(int size, int sdensity, int tdensity) { in scaleFromDensity() argument
1132 if (sdensity == DENSITY_NONE || tdensity == DENSITY_NONE || sdensity == tdensity) { in scaleFromDensity()
1137 return ((size * tdensity) + (sdensity >> 1)) / sdensity; in scaleFromDensity()