Searched refs:srcDensity (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/graphics/java/android/graphics/ |
D | ImageDecoder.java | 1784 final int srcDensity = decoder.computeDensity(src); in decodeDrawableImpl() local 1794 decoder.checkForExtended(), srcDensity, in decodeDrawableImpl() 1804 bm.setDensity(srcDensity); in decodeDrawableImpl() 1876 final int srcDensity = decoder.computeDensity(src); in decodeBitmapImpl() local 1878 bm.setDensity(srcDensity); in decodeBitmapImpl() 1899 final int srcDensity = src.getDensity(); in computeDensity() local 1900 if (srcDensity == Bitmap.DENSITY_NONE) { in computeDensity() 1901 return srcDensity; in computeDensity() 1910 return srcDensity; in computeDensity() 1921 if (res != null && res.getDisplayMetrics().noncompatDensityDpi == srcDensity) { in computeDensity() [all …]
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | AnimatedImageDrawable.java | 293 long colorSpaceHandle, boolean extended, int srcDensity, int dstDensity, in AnimatedImageDrawable() argument 296 width = Bitmap.scaleFromDensity(width, srcDensity, dstDensity); in AnimatedImageDrawable() 297 height = Bitmap.scaleFromDensity(height, srcDensity, dstDensity); in AnimatedImageDrawable() 303 cropRect.set(Bitmap.scaleFromDensity(cropRect.left, srcDensity, dstDensity), in AnimatedImageDrawable() 304 Bitmap.scaleFromDensity(cropRect.top, srcDensity, dstDensity), in AnimatedImageDrawable() 305 Bitmap.scaleFromDensity(cropRect.right, srcDensity, dstDensity), in AnimatedImageDrawable() 306 Bitmap.scaleFromDensity(cropRect.bottom, srcDensity, dstDensity)); in AnimatedImageDrawable()
|
/frameworks/base/libs/hwui/jni/ |
D | android_graphics_Canvas.cpp | 404 jlong paintHandle, jint dstDensity, jint srcDensity) { in drawNinePatch() argument 411 if (CC_LIKELY(dstDensity == srcDensity || dstDensity == 0 || srcDensity == 0)) { in drawNinePatch() 416 SkScalar scale = dstDensity / (float)srcDensity; in drawNinePatch()
|