Searched refs:scaledWidth (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/core/jni/android/graphics/ |
D | BitmapFactory.cpp | 118 int scaledWidth, int scaledHeight) { in scaleNinePatchChunk() argument 124 scaleDivRange(chunk->getXDivs(), chunk->numXDivs, scale, scaledWidth); in scaleNinePatchChunk() 297 int scaledWidth = size.width(); in doDecode() local 304 scaledWidth = codec->getInfo().width() / sampleSize; in doDecode() 314 env->SetIntField(options, gOptions_widthFieldID, scaledWidth); in doDecode() 326 scaledWidth = static_cast<int>(scaledWidth * scale + 0.5f); in doDecode() 429 scaleNinePatchChunk(peeker.mPatch, scale, scaledWidth, scaledHeight); in doDecode() 468 const float sx = scaledWidth / float(decodingBitmap.width()); in doDecode() 483 outputBitmap.setInfo(SkImageInfo::Make(scaledWidth, scaledHeight, in doDecode()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ImageUtils.java | 148 int scaledWidth = (int) (ratio * originalWidth); in buildScaledBitmap() local 150 Bitmap result = Bitmap.createBitmap(scaledWidth, scaledHeight, Config.ARGB_8888); in buildScaledBitmap() 154 drawable.setBounds(0, 0, scaledWidth, scaledHeight); in buildScaledBitmap()
|
/frameworks/base/libs/hwui/ |
D | VectorDrawable.cpp | 475 int scaledWidth = (int) (bounds.width() * canvasScaleX); in draw() local 477 scaledWidth = std::min(Tree::MAX_CACHED_BITMAP_SIZE, scaledWidth); in draw() 480 if (scaledWidth <= 0 || scaledHeight <= 0) { in draw() 484 mStagingProperties.setScaledSize(scaledWidth, scaledHeight); in draw() 503 return scaledWidth * scaledHeight; in draw()
|
D | VectorDrawable.h | 586 int scaledWidth = 0; member 625 if (mNonAnimatableProperties.scaledWidth != width in setScaledSize() 627 mNonAnimatableProperties.scaledWidth = width; in setScaledSize() 650 return mNonAnimatableProperties.scaledWidth; in getScaledWidth()
|
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/ |
D | VectorDrawableCompat.java | 183 int scaledWidth = (int) (mTmpBounds.width() * canvasScaleX); in draw() local 185 scaledWidth = Math.min(MAX_CACHED_BITMAP_SIZE, scaledWidth); in draw() 188 if (scaledWidth <= 0 || scaledHeight <= 0) { in draw() 207 mVectorState.createCachedBitmapIfNeeded(scaledWidth, scaledHeight); in draw() 209 mVectorState.updateCachedBitmap(scaledWidth, scaledHeight); in draw() 212 mVectorState.updateCachedBitmap(scaledWidth, scaledHeight); in draw()
|