Home
last modified time | relevance | path

Searched refs:mDragObject (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragController.java88 private DropTarget.DragObject mDragObject; field in DragController
177 mDragObject = new DropTarget.DragObject(); in startDrag()
185 final DragView dragView = mDragObject.dragView = new DragView(mLauncher, b, registrationX, in startDrag()
188 mDragObject.dragComplete = false; in startDrag()
191 mDragObject.xOffset = b.getWidth() / 2; in startDrag()
192 mDragObject.yOffset = b.getHeight() / 2; in startDrag()
193 mDragObject.accessibleDrag = true; in startDrag()
195 mDragObject.xOffset = mMotionDownX - (dragLayerX + dragRegionLeft); in startDrag()
196 mDragObject.yOffset = mMotionDownY - (dragLayerY + dragRegionTop); in startDrag()
197 mDragObject.stateAnnouncer = DragViewStateAnnouncer.createFor(dragView); in startDrag()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DFlingAnimation.java31 protected final DragObject mDragObject; field in FlingAnimation
48 mDragObject = d; in FlingAnimation()
57 mIconRect = mDropTarget.getIconRect(mDragObject); in run()
61 mDragLayer.getViewRectRelativeToSelf(mDragObject.dragView, mFrom); in run()
62 float scale = mDragObject.dragView.getScaleX(); in run()
63 float xOffset = ((scale - 1f) * mDragObject.dragView.getMeasuredWidth()) / 2f; in run()
64 float yOffset = ((scale - 1f) * mDragObject.dragView.getMeasuredHeight()) / 2f; in run()
74 mDragObject.dragView.setColor(0); in run()
105 mDropTarget.completeDrop(mDragObject); in run()
109 mDropTarget.onDrop(mDragObject, mDragOptions); in run()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DSecondaryDropTarget.java268 private DragObject mDragObject; field in SecondaryDropTarget.DeferredOnComplete
278 mDragObject = d; in onDropCompleted()
292 mDragObject.dragInfo.user) == null) { in onLauncherResume()
293 mDragObject.dragSource = mOriginal; in onLauncherResume()
294 mOriginal.onDropCompleted(SecondaryDropTarget.this, mDragObject, true); in onLauncherResume()
301 mDragObject.dragSource = mOriginal; in sendFailure()
302 mDragObject.cancelled = true; in sendFailure()
303 mOriginal.onDropCompleted(SecondaryDropTarget.this, mDragObject, false); in sendFailure()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolder.java1374 private final DragObject mDragObject; field in Folder.OnScrollHintListener
1377 mDragObject = object; in OnScrollHintListener()
1398 mScrollPauseAlarm.setOnAlarmListener(new OnScrollFinishedListener(mDragObject)); in onAlarm()
1405 private final DragObject mDragObject; field in Folder.OnScrollFinishedListener
1408 mDragObject = object; in OnScrollFinishedListener()
1417 onDragOver(mDragObject); in onAlarm()