Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/jni/
DBitmapFactory.cpp262 int scaledHeight = size.height(); in doDecode() local
269 scaledHeight = codec->getInfo().height() / sampleSize; in doDecode()
289 env->SetIntField(options, gOptions_heightFieldID, scaledHeight); in doDecode()
312 scaledHeight = static_cast<int>(scaledHeight * scale + 0.5f); in doDecode()
395 const float scaleY = scaledHeight / float(decodingBitmap.height()); in doDecode()
400 peeker.scale(scaleX, scaleY, scaledWidth, scaledHeight); in doDecode()
444 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/libs/hwui/
DVectorDrawable.cpp427 int scaledHeight = (int)(bounds.height() * canvasScaleY); in draw() local
429 scaledHeight = std::min(Tree::MAX_CACHED_BITMAP_SIZE, scaledHeight); in draw()
431 if (scaledWidth <= 0 || scaledHeight <= 0) { in draw()
435 mStagingProperties.setScaledSize(scaledWidth, scaledHeight); in draw()
454 return scaledWidth * scaledHeight; in draw()
513 int scaledHeight = SkScalarCeilToInt(mProperties.getScaledHeight()); in draw() local
514 canvas->drawBitmapRect(skiaBitmap, SkRect::MakeWH(scaledWidth, scaledHeight), bounds, in draw()
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/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/packages/SystemUI/src/com/android/systemui/accessibility/
DWindowMagnificationController.java346 final int scaledHeight = (int) (halfHeight / mScale); in setMagnificationFrameBoundary() local
348 final int exceededHeight = halfHeight - scaledHeight; in setMagnificationFrameBoundary()
/frameworks/base/graphics/java/android/graphics/
DImageDecoder.java1930 int scaledHeight = Math.max((int) (mHeight * scale + 0.5f), 1); in computeDensity() local
1931 this.setTargetSize(scaledWidth, scaledHeight); in computeDensity()