Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetImageView.java98 float scaledHeight = mBitmap.getHeight() * scale; in updateDstRectF() local
103 if (scaledHeight > myHeight) { in updateDstRectF()
105 mDstRectF.bottom = scaledHeight; in updateDstRectF()
107 mDstRectF.top = (myHeight - scaledHeight) / 2; in updateDstRectF()
108 mDstRectF.bottom = (myHeight + scaledHeight) / 2; in updateDstRectF()
DPendingItemDragHelper.java169 int scaledHeight = (int) (scaleFactor * preview.getHeight()); 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/UnifiedEmail/src/com/android/mail/ui/
DAttachmentTile.java186 final int scaledHeight = height * getResources().getDisplayMetrics().densityDpi in setThumbnail() local
192 || height >= maxSize || scaledHeight >= mIcon.getHeight(); in setThumbnail()
199 && scaledHeight >= mIcon.getWidth() * skinnyThresholdRatio); in setThumbnail()
201 scaledHeight, large, skinny); in setThumbnail()
/packages/apps/Launcher3/src/com/android/launcher3/states/
DSpringLoadedState.java59 float scaledHeight = scale * ws.getNormalChildHeight(); in getWorkspaceScaleAndTranslation() local
66 float desiredCellTop = shrunkTop + (totalShrunkSpace - scaledHeight) / 2; in getWorkspaceScaleAndTranslation()
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallTypeIconsView.java352 int scaledHeight = context.getResources().getDimensionPixelSize(R.dimen.call_type_icon_size); in getScaledBitmap() local
356 * ((float) scaledHeight / (float) drawable.getIntrinsicHeight())); in getScaledBitmap()
358 Bitmap icon = Bitmap.createBitmap(scaledWidth, scaledHeight, Bitmap.Config.ARGB_8888); in getScaledBitmap()
/packages/apps/Contacts/src/com/android/contacts/
DDynamicShortcuts.java391 final int scaledHeight = sourceHeight / opts.inSampleSize; in decodeStreamForShortcut() local
394 final int targetHeight = Math.min(scaledHeight, iconMaxHeight); in decodeStreamForShortcut()
402 final int prescaledYOffset = ((scaledHeight - targetSize) * opts.inSampleSize) / 2; in decodeStreamForShortcut()
/packages/apps/Messaging/src/com/android/messaging/util/
DImageUtils.java839 final float scaledHeight = scale * sourceHeight; in scaleCenterCrop() local
844 final float top = (newHeight - scaledHeight) / 2; in scaleCenterCrop()
848 final RectF targetRect = new RectF(left, top, left + scaledWidth, top + scaledHeight); in scaleCenterCrop()