Home
last modified time | relevance | path

Searched refs:scaledHeight (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/jni/android/graphics/
DBitmapFactory.cpp118 int scaledWidth, int scaledHeight) { in scaleNinePatchChunk() argument
125 scaleDivRange(chunk->getYDivs(), chunk->numYDivs, scale, scaledHeight); in scaleNinePatchChunk()
298 int scaledHeight = size.height(); in doDecode() local
305 scaledHeight = codec->getInfo().height() / sampleSize; in doDecode()
315 env->SetIntField(options, gOptions_heightFieldID, scaledHeight); in doDecode()
327 scaledHeight = static_cast<int>(scaledHeight * scale + 0.5f); in doDecode()
429 scaleNinePatchChunk(peeker.mPatch, scale, scaledWidth, scaledHeight); in doDecode()
469 const float sy = scaledHeight / float(decodingBitmap.height()); in doDecode()
483 outputBitmap.setInfo(SkImageInfo::Make(scaledWidth, scaledHeight, in doDecode()
/frameworks/base/core/java/com/android/internal/util/
DImageUtils.java149 int scaledHeight = (int) (ratio * originalHeight); 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/
DVectorDrawable.cpp476 int scaledHeight = (int) (bounds.height() * canvasScaleY); in draw() local
478 scaledHeight = std::min(Tree::MAX_CACHED_BITMAP_SIZE, scaledHeight); in draw()
480 if (scaledWidth <= 0 || scaledHeight <= 0) { in draw()
484 mStagingProperties.setScaledSize(scaledWidth, scaledHeight); in draw()
503 return scaledWidth * scaledHeight; in draw()
DVectorDrawable.h587 int scaledHeight = 0; member
626 || mNonAnimatableProperties.scaledHeight != height) { in setScaledSize()
628 mNonAnimatableProperties.scaledHeight = height; in setScaledSize()
653 return mNonAnimatableProperties.scaledHeight; in getScaledHeight()
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/
DVectorDrawableCompat.java184 int scaledHeight = (int) (mTmpBounds.height() * canvasScaleY); in draw() local
186 scaledHeight = Math.min(MAX_CACHED_BITMAP_SIZE, scaledHeight); 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()