/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/ |
H A D | ScreenMediaRecorder.java | 230 int scaledWidth = (int) (screenWidth * scale); in getSupportedSize() local 232 if (scaledWidth % vc.getWidthAlignment() != 0) { in getSupportedSize() 233 scaledWidth -= (scaledWidth % vc.getWidthAlignment()); in getSupportedSize() 240 int maxRate = vc.getSupportedFrameRatesFor(scaledWidth, scaledHeight) in getSupportedSize() 246 Log.d(TAG, "Resized by " + scale + ": " + scaledWidth + ", " + scaledHeight in getSupportedSize() 248 return new int[]{scaledWidth, scaledHeight, refreshRate}; in getSupportedSize()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
H A D | WidgetImageView.java | 88 float scaledWidth = bitmapWidth * scale; in updateDstRectF() local 91 mDstRectF.left = (myWidth - scaledWidth) / 2; in updateDstRectF() 92 mDstRectF.right = (myWidth + scaledWidth) / 2; in updateDstRectF()
|
H A D | PendingItemDragHelper.java | 241 int scaledWidth = (int) (scaleFactor * preview.getWidth()); in convertPreviewToAlphaBitmap() local 243 Rect dst = new Rect(0, 0, scaledWidth, scaledHeight); in convertPreviewToAlphaBitmap() 246 dst.offset((w - scaledWidth) / 2, (h - scaledHeight) / 2); in convertPreviewToAlphaBitmap()
|
/aosp12/frameworks/base/libs/hwui/ |
H A D | VectorDrawable.cpp | 426 int scaledWidth = (int)(bounds.width() * canvasScaleX); in draw() local 428 scaledWidth = std::min(Tree::MAX_CACHED_BITMAP_SIZE, scaledWidth); in draw() 431 if (scaledWidth <= 0 || scaledHeight <= 0) { in draw() 435 mStagingProperties.setScaledSize(scaledWidth, scaledHeight); in draw() 454 return scaledWidth * scaledHeight; in draw() 512 int scaledWidth = SkScalarCeilToInt(mProperties.getScaledWidth()); in draw() local 514 canvas->drawImageRect(cachedBitmap, SkRect::MakeWH(scaledWidth, scaledHeight), bounds, in draw()
|
H A D | VectorDrawable.h | 526 (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()
|
/aosp12/frameworks/base/libs/hwui/jni/ |
H A D | BitmapFactory.cpp | 264 int scaledWidth = size.width(); in doDecode() local 271 scaledWidth = codec->getInfo().width() / sampleSize; in doDecode() 291 env->SetIntField(options, gOptions_widthFieldID, scaledWidth); in doDecode() 314 scaledWidth = static_cast<int>(scaledWidth * scale + 0.5f); in doDecode() 397 const float scaleX = scaledWidth / float(decodingBitmap.width()); in doDecode() 403 peeker.scale(scaleX, scaleY, scaledWidth, scaledHeight); in doDecode() 447 bitmapInfo.makeWH(scaledWidth, scaledHeight).makeColorType(scaledColorType)); in doDecode()
|
H A D | NinePatchPeeker.cpp | 75 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()
|
H A D | NinePatchPeeker.h | 47 void scale(float scaleX, float scaleY, int scaledWidth, int scaledHeight);
|
/aosp12/frameworks/base/core/java/com/android/internal/util/ |
H A D | ImageUtils.java | 159 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()
|
/aosp12/frameworks/base/core/java/android/view/ |
H A D | PointerIcon.java | 443 final int scaledWidth = bitmapDrawable.getIntrinsicWidth(); in getBitmapFromDrawable() local 445 if (scaledWidth == bitmap.getWidth() && scaledHeight == bitmap.getHeight()) { in getBitmapFromDrawable() 450 RectF dst = new RectF(0, 0, scaledWidth, scaledHeight); in getBitmapFromDrawable() 452 Bitmap scaled = Bitmap.createBitmap(scaledWidth, scaledHeight, bitmap.getConfig()); in getBitmapFromDrawable()
|
/aosp12/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
H A D | GlifPatternDrawable.java | 154 int scaledWidth = (int) (VIEWBOX_WIDTH * scale); in createBitmapCache() local 158 Bitmap bitmap = Bitmap.createBitmap(scaledWidth, scaledHeight, Bitmap.Config.ALPHA_8); in createBitmapCache()
|
/aosp12/packages/apps/Contacts/src/com/android/contacts/ |
H A D | DynamicShortcuts.java | 390 final int scaledWidth = sourceWidth / opts.inSampleSize; in decodeStreamForShortcut() local 393 final int targetWidth = Math.min(scaledWidth, iconMaxWidth); in decodeStreamForShortcut() 401 final int prescaledXOffset = ((scaledWidth - targetSize) * opts.inSampleSize) / 2; in decodeStreamForShortcut()
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/calllogutils/ |
H A D | CallTypeIconsView.java | 353 int scaledWidth = in getScaledBitmap() local 358 Bitmap icon = Bitmap.createBitmap(scaledWidth, scaledHeight, Bitmap.Config.ARGB_8888); in getScaledBitmap()
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/util/ |
H A D | ImageUtils.java | 841 final float scaledWidth = scale * sourceWidth; in scaleCenterCrop() local 846 final float left = (newWidth - scaledWidth) / 2; in scaleCenterCrop() 851 final RectF targetRect = new RectF(left, top, left + scaledWidth, top + scaledHeight); in scaleCenterCrop()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/ |
H A D | WindowMagnificationController.java | 625 final int scaledWidth = (int) (halfWidth / mScale); in calculateMagnificationFrameBoundary() local 628 final int exceededWidth = halfWidth - scaledWidth; in calculateMagnificationFrameBoundary()
|
/aosp12/frameworks/base/graphics/java/android/graphics/ |
H A D | ImageDecoder.java | 1938 int scaledWidth = Math.max((int) (mWidth * scale + 0.5f), 1); in computeDensity() local 1940 this.setTargetSize(scaledWidth, scaledHeight); in computeDensity()
|
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | DisplayContentTests.java | 2321 float scaledWidth = displayAreaBounds.width() / xScale; in testVirtualDisplayContent_capturedAreaResized() local 2322 float xInset = (surfaceSize.x - scaledWidth) / 2; in testVirtualDisplayContent_capturedAreaResized()
|
/aosp12/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | DisplayContent.java | 6226 int scaledWidth = Math.round(scale * (float) displayAreaBounds.width()); in updateMirroredSurface() local 6232 if (scaledWidth != surfaceSize.x) { in updateMirroredSurface() 6233 shiftedX = (surfaceSize.x - scaledWidth) / 2; in updateMirroredSurface()
|