Home
last modified time | relevance | path

Searched refs:scaledHeight (Results 1 – 8 of 8) 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.java195 int scaledHeight = (int) (scaleFactor * mPreviewBitmap.getHeight()); in createDragOutline() local
196 Rect dst = new Rect(0, 0, scaledWidth, scaledHeight); in createDragOutline()
199 dst.offset((w - scaledWidth) / 2, (h - scaledHeight) / 2); in createDragOutline()
/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/Dialer/java/com/android/dialer/calllogutils/
DCallTypeIconsView.java294 int scaledHeight = context.getResources().getDimensionPixelSize(R.dimen.call_type_icon_size); in getScaledBitmap() local
296 (int) ((float) icon.getWidth() * ((float) scaledHeight / (float) icon.getHeight())); in getScaledBitmap()
297 Bitmap scaledIcon = Bitmap.createScaledBitmap(icon, scaledWidth, scaledHeight, false); in getScaledBitmap()
/packages/apps/Contacts/src/com/android/contacts/
DDynamicShortcuts.java384 final int scaledHeight = sourceHeight / opts.inSampleSize; in decodeStreamForShortcut() local
387 final int targetHeight = Math.min(scaledHeight, iconMaxHeight); in decodeStreamForShortcut()
395 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()
/packages/apps/Launcher3/src/com/android/launcher3/
DWorkspace.java2006 int scaledHeight = (int) (mOverviewModeShrinkFactor * getNormalChildHeight()); in getOverviewModeTranslationY() local
2012 … int workspaceOffsetTopEdge = workspaceTop + ((workspaceBottom - workspaceTop) - scaledHeight) / 2; in getOverviewModeTranslationY()
2013 int overviewOffsetTopEdge = overviewTop + (overviewBottom - overviewTop - scaledHeight) / 2; in getOverviewModeTranslationY()
2023 float scaledHeight = grid.workspaceSpringLoadShrinkFactor * getNormalChildHeight(); in getSpringLoadedTranslationY() local
2030 float desiredCellTop = shrunkTop + (totalShrunkSpace - scaledHeight) / 2; in getSpringLoadedTranslationY()
/packages/apps/Launcher2/src/com/android/launcher2/
DWorkspace.java1860 int scaledHeight = (int) (scaleFactor * orig.getHeight());
1861 Rect dst = new Rect(0, 0, scaledWidth, scaledHeight);
1864 dst.offset((w - scaledWidth) / 2, (h - scaledHeight) / 2);