Searched refs:draggedViewWidthPx (Results 1 – 3 of 3) sorted by relevance
71 val draggedViewWidthPx = widgetSize.width + 0.5f * widgetSize.width in getWidgetDragScalePx_largeDraggedView_downScaled() constant78 draggedViewWidthPx, in getWidgetDragScalePx_largeDraggedView_downScaled()96 val draggedViewWidthPx = widgetSize.width.toFloat() in getWidgetDragScalePx_draggedViewSameAsWidgetSize_downScaled() constant106 draggedViewWidthPx, in getWidgetDragScalePx_draggedViewSameAsWidgetSize_downScaled()124 val draggedViewWidthPx = minSizePx - 15f in getWidgetDragScalePx_draggedViewSmallerThanMinSize_scaledSizeIsAtLeastMinSize() constant132 draggedViewWidthPx, in getWidgetDragScalePx_draggedViewSmallerThanMinSize_scaledSizeIsAtLeastMinSize()137 val effectiveWidthPx = draggedViewWidthPx + finalScalePx in getWidgetDragScalePx_draggedViewSmallerThanMinSize_scaledSizeIsAtLeastMinSize()138 val scaleFactor = (draggedViewWidthPx + finalScalePx) / draggedViewWidthPx in getWidgetDragScalePx_draggedViewSmallerThanMinSize_scaledSizeIsAtLeastMinSize()
44 @Px float draggedViewWidthPx, @Px float draggedViewHeightPx, ItemInfo itemInfo) { in getWidgetDragScalePx() argument58 final float bitmapAspectRatio = draggedViewWidthPx / draggedViewHeightPx; in getWidgetDragScalePx()64 / draggedViewWidthPx : desiredWidgetHeightPx / draggedViewHeightPx; in getWidgetDragScalePx()66 return (draggedViewWidthPx * scale) - draggedViewWidthPx; in getWidgetDragScalePx()
174 float draggedViewWidthPx = 0; in getWidgetDragScalePx() local178 draggedViewWidthPx = view.getMeasuredWidth(); in getWidgetDragScalePx()181 draggedViewWidthPx = drawable.getIntrinsicWidth(); in getWidgetDragScalePx()186 draggedViewWidthPx, draggedViewHeightPx, dragInfo); in getWidgetDragScalePx()