Home
last modified time | relevance | path

Searched refs:dstDensity (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/graphics/java/android/graphics/drawable/
DAnimatedImageDrawable.java294 long colorSpaceHandle, boolean extended, int srcDensity, int dstDensity, in AnimatedImageDrawable() argument
297 width = Bitmap.scaleFromDensity(width, srcDensity, dstDensity); in AnimatedImageDrawable()
298 height = Bitmap.scaleFromDensity(height, srcDensity, dstDensity); in AnimatedImageDrawable()
304 cropRect.set(Bitmap.scaleFromDensity(cropRect.left, srcDensity, dstDensity), in AnimatedImageDrawable()
305 Bitmap.scaleFromDensity(cropRect.top, srcDensity, dstDensity), in AnimatedImageDrawable()
306 Bitmap.scaleFromDensity(cropRect.right, srcDensity, dstDensity), in AnimatedImageDrawable()
307 Bitmap.scaleFromDensity(cropRect.bottom, srcDensity, dstDensity)); in AnimatedImageDrawable()
/frameworks/base/graphics/java/android/graphics/
DImageDecoder.java1917 final int dstDensity = src.computeDstDensity(); in computeDensity() local
1918 if (srcDensity == dstDensity) { in computeDensity()
1924 if (srcDensity < dstDensity && sApiLevel >= Build.VERSION_CODES.P) { in computeDensity()
1928 float scale = (float) dstDensity / srcDensity; in computeDensity()
1932 return dstDensity; in computeDensity()
/frameworks/base/libs/hwui/jni/
Dandroid_graphics_Canvas.cpp404 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()