Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/
DVectorDrawable.cpp421 int scaledWidth = (int)(bounds.width() * canvasScaleX); in draw() local
423 scaledWidth = std::min(Tree::MAX_CACHED_BITMAP_SIZE, scaledWidth); in draw()
426 if (scaledWidth <= 0 || scaledHeight <= 0) { in draw()
430 mStagingProperties.setScaledSize(scaledWidth, scaledHeight); in draw()
449 return scaledWidth * scaledHeight; in draw()
495 int scaledWidth = SkScalarCeilToInt(mProperties.getScaledWidth()); in updateCache() local
497 auto atlasEntry = atlas->requestNewEntry(scaledWidth, scaledHeight, context); in updateCache()
565 int scaledWidth = SkScalarCeilToInt(mProperties.getScaledWidth()); in draw() local
567 canvas->drawBitmapRect(skiaBitmap, SkRect::MakeWH(scaledWidth, scaledHeight), bounds, in draw()
585 int scaledWidth = SkScalarCeilToInt(mProperties.getScaledWidth()); in draw() local
[all …]
DVectorDrawable.h526 (mProperties.mNonAnimatableProperties.scaledWidth != in syncProperties()
527 mStagingProperties.mNonAnimatableProperties.scaledWidth) || in syncProperties()
554 int scaledWidth = 0; member
592 if (mNonAnimatableProperties.scaledWidth < width || in setScaledSize()
594 mNonAnimatableProperties.scaledWidth = in setScaledSize()
595 std::max(width, mNonAnimatableProperties.scaledWidth); in setScaledSize()
613 float getScaledWidth() const { return mNonAnimatableProperties.scaledWidth; } in getScaledWidth()
/frameworks/base/core/jni/android/graphics/
DBitmapFactory.cpp272 int scaledWidth = size.width(); in doDecode() local
279 scaledWidth = codec->getInfo().width() / sampleSize; in doDecode()
300 env->SetIntField(options, gOptions_widthFieldID, scaledWidth); in doDecode()
323 scaledWidth = static_cast<int>(scaledWidth * scale + 0.5f); in doDecode()
406 const float scaleX = scaledWidth / float(decodingBitmap.width()); 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
85 scaleDivRange(mPatch->getXDivs(), mPatch->numXDivs, scaleX, scaledWidth - 1); in scale()
DNinePatchPeeker.h47 void scale(float scaleX, float scaleY, int scaledWidth, int scaledHeight);
/frameworks/base/core/java/com/android/internal/util/
DImageUtils.java159 int scaledWidth = (int) (ratio * originalWidth); 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.java442 final int scaledWidth = bitmapDrawable.getIntrinsicWidth(); 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.java154 int scaledWidth = (int) (VIEWBOX_WIDTH * scale); in createBitmapCache() local
158 Bitmap bitmap = Bitmap.createBitmap(scaledWidth, scaledHeight, Bitmap.Config.ALPHA_8); in createBitmapCache()
/frameworks/base/graphics/java/android/graphics/
DImageDecoder.java1914 int scaledWidth = Math.max((int) (mWidth * scale + 0.5f), 1); in computeDensity() local
1916 this.setTargetSize(scaledWidth, scaledHeight); in computeDensity()