Home
last modified time | relevance | path

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

/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DAttachmentTile.java184 final int scaledWidth = width * getResources().getDisplayMetrics().densityDpi in setThumbnail() local
191 final boolean large = width >= maxSize || scaledWidth >= mIcon.getWidth() in setThumbnail()
198 !(scaledWidth >= mIcon.getHeight() * skinnyThresholdRatio in setThumbnail()
200 LogUtils.d(LOG_TAG, "scaledWidth: %d, scaledHeight: %d, large: %b, skinny: %b", scaledWidth, in setThumbnail()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetImageView.java97 float scaledWidth = bitmapWidth * scale; in updateDstRectF() local
100 mDstRectF.left = (myWidth - scaledWidth) / 2; in updateDstRectF()
101 mDstRectF.right = (myWidth + scaledWidth) / 2; in updateDstRectF()
DPendingItemDragHelper.java168 int scaledWidth = (int) (scaleFactor * preview.getWidth()); in convertPreviewToAlphaBitmap() local
170 Rect dst = new Rect(0, 0, scaledWidth, scaledHeight); in convertPreviewToAlphaBitmap()
173 dst.offset((w - scaledWidth) / 2, (h - scaledHeight) / 2); in convertPreviewToAlphaBitmap()
/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/Messaging/src/com/android/messaging/util/
DImageUtils.java838 final float scaledWidth = scale * sourceWidth; in scaleCenterCrop() local
843 final float left = (newWidth - scaledWidth) / 2; in scaleCenterCrop()
848 final RectF targetRect = new RectF(left, top, left + scaledWidth, top + scaledHeight); in scaleCenterCrop()
/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()