Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/
DVectorDrawable.cpp422 int scaledHeight = (int)(bounds.height() * canvasScaleY); in draw() local
424 scaledHeight = std::min(Tree::MAX_CACHED_BITMAP_SIZE, scaledHeight); in draw()
426 if (scaledWidth <= 0 || scaledHeight <= 0) { in draw()
430 mStagingProperties.setScaledSize(scaledWidth, scaledHeight); in draw()
449 return scaledWidth * scaledHeight; in draw()
496 int scaledHeight = SkScalarCeilToInt(mProperties.getScaledHeight()); in updateCache() local
497 auto atlasEntry = atlas->requestNewEntry(scaledWidth, scaledHeight, context); in updateCache()
566 int scaledHeight = SkScalarCeilToInt(mProperties.getScaledHeight()); in draw() local
567 canvas->drawBitmapRect(skiaBitmap, SkRect::MakeWH(scaledWidth, scaledHeight), bounds, in draw()
586 int scaledHeight = SkScalarCeilToInt(mProperties.getScaledHeight()); in draw() local
[all …]
DVectorDrawable.h528 (mProperties.mNonAnimatableProperties.scaledHeight != in syncProperties()
529 mStagingProperties.mNonAnimatableProperties.scaledHeight) || in syncProperties()
555 int scaledHeight = 0; member
593 mNonAnimatableProperties.scaledHeight < height) { in setScaledSize()
596 mNonAnimatableProperties.scaledHeight = in setScaledSize()
597 std::max(height, mNonAnimatableProperties.scaledHeight); in setScaledSize()
614 float getScaledHeight() const { return mNonAnimatableProperties.scaledHeight; } in getScaledHeight()
/frameworks/base/core/jni/android/graphics/
DBitmapFactory.cpp273 int scaledHeight = size.height(); in doDecode() local
280 scaledHeight = codec->getInfo().height() / sampleSize; in doDecode()
301 env->SetIntField(options, gOptions_heightFieldID, scaledHeight); in doDecode()
324 scaledHeight = static_cast<int>(scaledHeight * scale + 0.5f); in doDecode()
407 const float scaleY = scaledHeight / float(decodingBitmap.height()); in doDecode()
412 peeker.scale(scaleX, scaleY, scaledWidth, scaledHeight); in doDecode()
456 bitmapInfo.makeWH(scaledWidth, scaledHeight).makeColorType(scaledColorType)); in doDecode()
DNinePatchPeeker.cpp75 void NinePatchPeeker::scale(float scaleX, float scaleY, int scaledWidth, int scaledHeight) { in scale() argument
91 scaleDivRange(mPatch->getYDivs(), mPatch->numYDivs, scaleY, scaledHeight - 1); in scale()
DNinePatchPeeker.h47 void scale(float scaleX, float scaleY, int scaledWidth, int scaledHeight);
/frameworks/base/core/java/com/android/internal/util/
DImageUtils.java160 int scaledHeight = (int) (ratio * originalHeight); in buildScaledBitmap() local
161 Bitmap result = Bitmap.createBitmap(scaledWidth, scaledHeight, Config.ARGB_8888); in buildScaledBitmap()
165 drawable.setBounds(0, 0, scaledWidth, scaledHeight); in buildScaledBitmap()
/frameworks/base/core/java/android/view/
DPointerIcon.java443 final int scaledHeight = bitmapDrawable.getIntrinsicHeight(); in getBitmapFromDrawable() local
444 if (scaledWidth == bitmap.getWidth() && scaledHeight == bitmap.getHeight()) { in getBitmapFromDrawable()
449 RectF dst = new RectF(0, 0, scaledWidth, scaledHeight); in getBitmapFromDrawable()
451 Bitmap scaled = Bitmap.createBitmap(scaledWidth, scaledHeight, bitmap.getConfig()); in getBitmapFromDrawable()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
DGlifPatternDrawable.java155 int scaledHeight = (int) (VIEWBOX_HEIGHT * scale); in createBitmapCache() local
158 Bitmap bitmap = Bitmap.createBitmap(scaledWidth, scaledHeight, Bitmap.Config.ALPHA_8); in createBitmapCache()
/frameworks/base/graphics/java/android/graphics/
DImageDecoder.java1915 int scaledHeight = Math.max((int) (mHeight * scale + 0.5f), 1); in computeDensity() local
1916 this.setTargetSize(scaledWidth, scaledHeight); in computeDensity()