Searched refs:scaledWidth (Results 1 – 7 of 7) sorted by relevance
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | WidgetImageView.java | 88 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()
|
D | PendingItemDragHelper.java | 233 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/ |
D | SystemScaledSubsamplingScaleImageView.kt | 41 val scaledWidth = (measuredWidth * scale).toInt() in onLayout() constant 43 val xCentered = (measuredWidth - scaledWidth) / 2 in onLayout()
|
/packages/services/DeviceAsWebcam/src/com/android/DeviceAsWebcam/ |
D | CameraController.java | 446 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/ |
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()
|
/packages/apps/Dialer/java/com/android/dialer/calllogutils/ |
D | CallTypeIconsView.java | 353 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/ |
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()
|