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.java81 private DropTarget.DragObject mDragObject; field in DragController
169 mDragObject = new DropTarget.DragObject(); in startDrag()
177 final DragView dragView = mDragObject.dragView = new DragView(mLauncher, b, registrationX, in startDrag()
180 mDragObject.dragComplete = false; in startDrag()
183 mDragObject.xOffset = b.getWidth() / 2; in startDrag()
184 mDragObject.yOffset = b.getHeight() / 2; in startDrag()
185 mDragObject.accessibleDrag = true; in startDrag()
187 mDragObject.xOffset = mMotionDownX - (dragLayerX + dragRegionLeft); in startDrag()
188 mDragObject.yOffset = mMotionDownY - (dragLayerY + dragRegionTop); in startDrag()
189 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.java265 private DragObject mDragObject; field in SecondaryDropTarget.DeferredOnComplete
275 mDragObject = d; in onDropCompleted()
289 mDragObject.dragInfo.user) == null) { in onLauncherResume()
290 mDragObject.dragSource = mOriginal; in onLauncherResume()
291 mOriginal.onDropCompleted(SecondaryDropTarget.this, mDragObject, true); in onLauncherResume()
298 mDragObject.dragSource = mOriginal; in sendFailure()
299 mDragObject.cancelled = true; in sendFailure()
300 mOriginal.onDropCompleted(SecondaryDropTarget.this, mDragObject, false); in sendFailure()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolder.java1351 private final DragObject mDragObject;
1354 mDragObject = object;
1375 mScrollPauseAlarm.setOnAlarmListener(new OnScrollFinishedListener(mDragObject));
1382 private final DragObject mDragObject;
1385 mDragObject = object;
1394 onDragOver(mDragObject);