Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetImageView.java88 final float scaledWidth = bitmapWidth * scale; in updateDstRectF() local
92 if (scaledWidth > myWidth) { in updateDstRectF()
94 mDstRectF.right = scaledWidth; in updateDstRectF()
96 mDstRectF.left = (myWidth - scaledWidth) / 2; in updateDstRectF()
97 mDstRectF.right = (myWidth + scaledWidth) / 2; in updateDstRectF()
DPendingItemDragHelper.java233 int scaledWidth = (int) (scaleFactor * preview.getWidth()); in convertPreviewToAlphaBitmap() local
235 Rect dst = new Rect(0, 0, scaledWidth, scaledHeight); in convertPreviewToAlphaBitmap()
238 dst.offset((w - scaledWidth) / 2, (h - scaledHeight) / 2); in convertPreviewToAlphaBitmap()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/view/
DSystemScaledSubsamplingScaleImageView.kt41 val scaledWidth = (measuredWidth * scale).toInt() in onLayout() constant
43 val xCentered = (measuredWidth - scaledWidth) / 2 in onLayout()
/packages/services/DeviceAsWebcam/src/com/android/DeviceAsWebcam/
DCameraController.java446 int scaledWidth, scaledHeight; in setupBitmaps() local
448 scaledWidth = (int)(0.5 * width); in setupBitmaps()
450 (int)(scaledWidth * (float)logoBitmap.getHeight() / logoBitmap.getWidth()); in setupBitmaps()
453 scaledWidth = in setupBitmaps()
461 int offsetX = (width - scaledWidth) / 2; in setupBitmaps()
463 int endX = offsetX + scaledWidth; in setupBitmaps()
/packages/apps/Contacts/src/com/android/contacts/
DDynamicShortcuts.java390 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()
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallTypeIconsView.java353 int scaledWidth = in getScaledBitmap() local
358 Bitmap icon = Bitmap.createBitmap(scaledWidth, scaledHeight, Bitmap.Config.ARGB_8888); in getScaledBitmap()
/packages/apps/Messaging/src/com/android/messaging/util/
DImageUtils.java841 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()