Home
last modified time | relevance | path

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

/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/util/
DWidgetDragScaleUtilsTest.kt71 val draggedViewWidthPx = widgetSize.width + 0.5f * widgetSize.width in getWidgetDragScalePx_largeDraggedView_downScaled() constant
78 draggedViewWidthPx, in getWidgetDragScalePx_largeDraggedView_downScaled()
96 val draggedViewWidthPx = widgetSize.width.toFloat() in getWidgetDragScalePx_draggedViewSameAsWidgetSize_downScaled() constant
106 draggedViewWidthPx, in getWidgetDragScalePx_draggedViewSameAsWidgetSize_downScaled()
124 val draggedViewWidthPx = minSizePx - 15f in getWidgetDragScalePx_draggedViewSmallerThanMinSize_scaledSizeIsAtLeastMinSize() constant
132 draggedViewWidthPx, in getWidgetDragScalePx_draggedViewSmallerThanMinSize_scaledSizeIsAtLeastMinSize()
137 val effectiveWidthPx = draggedViewWidthPx + finalScalePx in getWidgetDragScalePx_draggedViewSmallerThanMinSize_scaledSizeIsAtLeastMinSize()
138 val scaleFactor = (draggedViewWidthPx + finalScalePx) / draggedViewWidthPx 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()
66 return (draggedViewWidthPx * scale) - draggedViewWidthPx; in getWidgetDragScalePx()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DLauncherDragController.java174 float draggedViewWidthPx = 0; in getWidgetDragScalePx() local
178 draggedViewWidthPx = view.getMeasuredWidth(); in getWidgetDragScalePx()
181 draggedViewWidthPx = drawable.getIntrinsicWidth(); in getWidgetDragScalePx()
186 draggedViewWidthPx, draggedViewHeightPx, dragInfo); in getWidgetDragScalePx()