Home
last modified time | relevance | path

Searched refs:dragRegion (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/widget/
DPendingItemDragHelper.java78 final Rect dragRegion; in startDrag() local
112 dragRegion = null; in startDrag()
133 dragRegion = new Rect(); in startDrag()
134 dragRegion.left = (mEstimatedCellSize[0] - iconSize) / 2; in startDrag()
135 dragRegion.right = dragRegion.left + iconSize; in startDrag()
136 dragRegion.top = (mEstimatedCellSize[1] in startDrag()
138 dragRegion.bottom = dragRegion.top + iconSize; in startDrag()
152 dragOffset, dragRegion, scale, scale, options); in startDrag()
/packages/apps/Launcher3/src/com/android/launcher3/
DDropTarget.java81 Rect dragRegion = dragView.getDragRegion(); in getVisualCenter() local
86 int left = x - xOffset - dragRegion.left; in getVisualCenter()
87 int top = y - yOffset - dragRegion.top; in getVisualCenter()
90 res[0] = left + dragRegion.width() / 2; in getVisualCenter()
91 res[1] = top + dragRegion.height() / 2; in getVisualCenter()
DWorkspace.java2667 Rect dragRegion = dragView.getDragRegion();
2668 if (dragRegion != null) {
2669 loc[0] += cellLayoutScale * dragRegion.left;
2670 loc[1] += cellLayoutScale * dragRegion.top;
DCellLayout.java962 Rect dragRegion = dragObject.dragView.getDragRegion(); in visualizeDropLocation() local
1000 if (dragOffset != null && dragRegion != null) { in visualizeDropLocation()
1003 left += dragOffset.x + ((mCellWidth * spanX) - dragRegion.width()) / 2; in visualizeDropLocation()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragController.java153 DragSource source, ItemInfo dragInfo, Point dragOffset, Rect dragRegion, in startDrag() argument
172 final int dragRegionLeft = dragRegion == null ? 0 : dragRegion.left; in startDrag()
173 final int dragRegionTop = dragRegion == null ? 0 : dragRegion.top; in startDrag()
210 if (dragRegion != null) { in startDrag()
211 dragView.setDragRegion(new Rect(dragRegion)); in startDrag()