Searched refs:scaleFromDensity (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | NinePatchDrawable.java | 186 private static Insets scaleFromDensity(Insets insets, int sdensity, int tdensity) { in scaleFromDensity() method in NinePatchDrawable 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() 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() 211 dest.top = Bitmap.scaleFromDensity(src.top, sdensity, tdensity); in computeBitmapSize() 212 dest.right = Bitmap.scaleFromDensity(src.right, sdensity, tdensity); in computeBitmapSize() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | Bitmap.java | 1079 return scaleFromDensity(getWidth(), mDensity, canvas.mDensity); in getScaledWidth() 1087 return scaleFromDensity(getHeight(), mDensity, canvas.mDensity); in getScaledHeight() 1095 return scaleFromDensity(getWidth(), mDensity, metrics.densityDpi); in getScaledWidth() 1103 return scaleFromDensity(getHeight(), mDensity, metrics.densityDpi); in getScaledHeight() 1114 return scaleFromDensity(getWidth(), mDensity, targetDensity); in getScaledWidth() 1125 return scaleFromDensity(getHeight(), mDensity, targetDensity); in getScaledHeight() 1131 static public int scaleFromDensity(int size, int sdensity, int tdensity) { in scaleFromDensity() method in Bitmap
|