Home
last modified time | relevance | path

Searched refs:draggedViewHeightPx (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/util/
DWidgetDragScaleUtilsTest.kt72 val draggedViewHeightPx = widgetSize.height + 0.5f * widgetSize.height in getWidgetDragScalePx_largeDraggedView_downScaled() constant
79 draggedViewHeightPx, in getWidgetDragScalePx_largeDraggedView_downScaled()
97 val draggedViewHeightPx = widgetSize.height.toFloat() in getWidgetDragScalePx_draggedViewSameAsWidgetSize_downScaled() constant
107 draggedViewHeightPx, in getWidgetDragScalePx_draggedViewSameAsWidgetSize_downScaled()
125 val draggedViewHeightPx = minSizePx - 15f in getWidgetDragScalePx_draggedViewSmallerThanMinSize_scaledSizeIsAtLeastMinSize() constant
133 draggedViewHeightPx, in getWidgetDragScalePx_draggedViewSmallerThanMinSize_scaledSizeIsAtLeastMinSize()
139 val effectiveHeightPx = scaleFactor * draggedViewHeightPx in getWidgetDragScalePx_draggedViewSmallerThanMinSize_scaledSizeIsAtLeastMinSize()
/packages/apps/Launcher3/src/com/android/launcher3/widget/util/
DWidgetDragScaleUtils.java44 @Px float draggedViewWidthPx, @Px float draggedViewHeightPx, ItemInfo itemInfo) { in getWidgetDragScalePx() argument
58 final float bitmapAspectRatio = draggedViewWidthPx / draggedViewHeightPx; in getWidgetDragScalePx()
64 / draggedViewWidthPx : desiredWidgetHeightPx / draggedViewHeightPx; in getWidgetDragScalePx()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DLauncherDragController.java175 float draggedViewHeightPx = 0; in getWidgetDragScalePx() local
179 draggedViewHeightPx = view.getMeasuredHeight(); in getWidgetDragScalePx()
182 draggedViewHeightPx = drawable.getIntrinsicHeight(); in getWidgetDragScalePx()
186 draggedViewWidthPx, draggedViewHeightPx, dragInfo); in getWidgetDragScalePx()