Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetImageView.java89 final float scaledHeight = bitmapHeight * scale; in updateDstRectF() local
99 if (scaledHeight > myHeight) { in updateDstRectF()
101 mDstRectF.bottom = scaledHeight; in updateDstRectF()
103 mDstRectF.top = (myHeight - scaledHeight) / 2; in updateDstRectF()
104 mDstRectF.bottom = (myHeight + scaledHeight) / 2; in updateDstRectF()
DPendingItemDragHelper.java234 int scaledHeight = (int) (scaleFactor * preview.getHeight()); 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/Launcher3/src/com/android/launcher3/allapps/
DSectionDecorationHandler.java110 int scaledHeight = (int) (view.getHeight() * view.getScaleY()); in onFocusDraw() local
111 mBounds.set(view.getLeft(), view.getY(), view.getRight(), view.getY() + scaledHeight); in onFocusDraw()
180 int scaledHeight = (int) (view.getHeight() * view.getScaleY()); in addChild() local
182 view.getRight(), view.getY() + scaledHeight); in addChild()
DRecyclerViewAnimationController.java159 int scaledHeight = (int) (currentView.getHeight() * scaleY); in onProgressUpdated() local
167 y -= scaledHeight; in onProgressUpdated()
170 totalHeight += scaledHeight; in onProgressUpdated()
172 appRowHeight = scaledHeight; in onProgressUpdated()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/view/
DSystemScaledSubsamplingScaleImageView.kt42 val scaledHeight = (measuredHeight * scale).toInt() in onLayout() constant
44 val yCentered = (measuredHeight - scaledHeight) / 2 in onLayout()
/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/services/DeviceAsWebcam/src/com/android/DeviceAsWebcam/
DCameraController.java446 int scaledWidth, scaledHeight; in setupBitmaps() local
449 scaledHeight = in setupBitmaps()
452 scaledHeight = (int)(0.5 * height); in setupBitmaps()
454 (int)(scaledHeight * (float)logoBitmap.getWidth() / logoBitmap.getHeight()); in setupBitmaps()
462 int offsetY = (height - scaledHeight)/ 2; in setupBitmaps()
464 int endY = offsetY + scaledHeight; in setupBitmaps()
/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.java842 final float scaledHeight = scale * sourceHeight; in scaleCenterCrop() local
847 final float top = (newHeight - scaledHeight) / 2; in scaleCenterCrop()
851 final RectF targetRect = new RectF(left, top, left + scaledWidth, top + scaledHeight); in scaleCenterCrop()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderAnimationManager.java277 float scaledHeight = normalHeight * initialScale; in getAnimator() local
278 float diff = normalHeight - scaledHeight; in getAnimator()