Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/jni/
DBitmapFactory.cpp204 int scaledHeight = size.height(); in decodeGainmap() local
213 scaledHeight = static_cast<int>((codec->getInfo().height() / sampleSize) * scale + 0.5f); in decodeGainmap()
265 const float scaleY = scaledHeight / float(decodeBitmap.height()); in decodeGainmap()
269 bitmapInfo.makeWH(scaledWidth, scaledHeight).makeColorType(scaledColorType)); in decodeGainmap()
392 int scaledHeight = size.height(); in doDecode() local
399 scaledHeight = codec->getInfo().height() / sampleSize; in doDecode()
427 env->SetIntField(options, gOptions_heightFieldID, scaledHeight); in doDecode()
450 scaledHeight = static_cast<int>(scaledHeight * scale + 0.5f); in doDecode()
533 const float scaleY = scaledHeight / float(decodingBitmap.height()); in doDecode()
538 peeker.scale(scaleX, scaleY, scaledWidth, scaledHeight); in doDecode()
[all …]
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/layoutlib/validator/src/com/android/tools/idea/validator/
DAtfBufferedImage.java125 int scaledHeight = (int)(mHeight * mScaleY); in getPixels() local
127 if (scaledWidth <= 0 || scaledHeight <= 0) { in getPixels()
132 scaledLeft, scaledTop, scaledWidth, scaledHeight); in getPixels()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DScreenMediaRecorder.java254 int scaledHeight = (int) (screenHeight * scale); in getSupportedSize() local
258 if (scaledHeight % vc.getHeightAlignment() != 0) { in getSupportedSize()
259 scaledHeight -= (scaledHeight % vc.getHeightAlignment()); in getSupportedSize()
263 int maxRate = vc.getSupportedFrameRatesFor(scaledWidth, scaledHeight) in getSupportedSize()
269 Log.d(TAG, "Resized by " + scale + ": " + scaledWidth + ", " + scaledHeight in getSupportedSize()
271 return new int[]{scaledWidth, scaledHeight, refreshRate}; in getSupportedSize()
/frameworks/base/libs/hwui/
DVectorDrawable.cpp424 int scaledHeight = (int)(bounds.height() * canvasScaleY); in draw() local
426 scaledHeight = std::min(Tree::MAX_CACHED_BITMAP_SIZE, scaledHeight); in draw()
428 if (scaledWidth <= 0 || scaledHeight <= 0) { in draw()
432 mStagingProperties.setScaledSize(scaledWidth, scaledHeight); in draw()
451 return scaledWidth * scaledHeight; in draw()
510 int scaledHeight = SkScalarCeilToInt(mProperties.getScaledHeight()); in draw() local
511 canvas->drawImageRect(cachedBitmap, SkRect::MakeWH(scaledWidth, scaledHeight), bounds, in draw()
DVectorDrawable.h529 (mProperties.mNonAnimatableProperties.scaledHeight != in syncProperties()
530 mStagingProperties.mNonAnimatableProperties.scaledHeight) || in syncProperties()
556 int scaledHeight = 0; member
594 mNonAnimatableProperties.scaledHeight < height) { in setScaledSize()
597 mNonAnimatableProperties.scaledHeight = in setScaledSize()
598 std::max(height, mNonAnimatableProperties.scaledHeight); in setScaledSize()
615 float getScaledHeight() const { return mNonAnimatableProperties.scaledHeight; } in getScaledHeight()
/frameworks/base/core/java/com/android/internal/util/
DImageUtils.java174 int scaledHeight = (int) (ratio * originalHeight); in buildScaledBitmap() local
175 Bitmap result = Bitmap.createBitmap(scaledWidth, scaledHeight, Config.ARGB_8888); in buildScaledBitmap()
179 drawable.setBounds(0, 0, scaledWidth, scaledHeight); in buildScaledBitmap()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/back/
DCrossTaskBackAnimation.java180 float scaledHeight = scale * height; in updateGestureBackProgress() local
190 (height - scaledHeight) / 2f - mVerticalMargin); in updateGestureBackProgress()
193 float scaledTop = (height - scaledHeight) * 0.5f + deltaY; in updateGestureBackProgress()
203 mClosingCurrentRect.set(left, scaledTop, right, scaledTop + scaledHeight); in updateGestureBackProgress()
205 left - mInterWindowMargin, scaledTop + scaledHeight); in updateGestureBackProgress()
/frameworks/base/core/java/android/view/
DPointerIcon.java454 final int scaledHeight = bitmapDrawable.getIntrinsicHeight(); in getBitmapFromDrawable() local
455 if (scaledWidth == bitmap.getWidth() && scaledHeight == bitmap.getHeight()) { in getBitmapFromDrawable()
460 RectF dst = new RectF(0, 0, scaledWidth, scaledHeight); in getBitmapFromDrawable()
462 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/services/core/java/com/android/server/wm/
DContentRecorder.java561 int scaledHeight = Math.round(scale.y * (float) recordedContentBounds.height()); in updateMirroredSurface() local
570 if (scaledHeight != surfaceSize.y) { in updateMirroredSurface()
571 shiftedY = (surfaceSize.y - scaledHeight) / 2; in updateMirroredSurface()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/
DDragToDesktopTransitionHandler.kt254 val scaledHeight = taskBounds.height() * taskScale in <lambda>() constant
261 (dragPosition.y + scaledHeight).toInt() in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DWindowMagnificationController.java1242 final int scaledHeight = (int) (halfHeight / mScale); in calculateMagnificationFrameBoundary() local
1259 final int exceededTop = Math.max(halfHeight - scaledHeight - mMagnificationFrameOffsetY, 0); in calculateMagnificationFrameBoundary()
1260 final int exceededBottom = Math.max(halfHeight - scaledHeight + mMagnificationFrameOffsetY, in calculateMagnificationFrameBoundary()
/frameworks/base/graphics/java/android/graphics/
DImageDecoder.java1949 int scaledHeight = Math.max((int) (mHeight * scale + 0.5f), 1);
1950 this.setTargetSize(scaledWidth, scaledHeight);