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.java183 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()
193 final int tdensity = mTargetDensity; 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/
DBitmap.java1144 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()