Searched refs:mDragObject (Results 1 – 6 of 6) sorted by relevance
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | DragController.java | 79 protected DropTarget.DragObject mDragObject; field in DragController 207 mOptions.preDragCondition.onPreDragEnd(mDragObject, true /* dragStarted*/); in callOnDragStart() 210 mDragObject.dragView.onDragStart(); in callOnDragStart() 212 listener.onDragStart(mDragObject, mOptions); in callOnDragStart() 217 return Optional.ofNullable(mDragObject) in getLogInstanceId() 245 mLastDropTarget.onDragExit(mDragObject); in cancelDrag() 247 mDragObject.deferDragViewCleanupPostAnimation = false; in cancelDrag() 248 mDragObject.cancelled = true; in cancelDrag() 249 mDragObject.dragComplete = true; in cancelDrag() 262 mDragObject.deferDragViewCleanupPostAnimation = false; in dispatchDropComplete() [all …]
|
D | LauncherDragController.java | 89 mDragObject = new DropTarget.DragObject(mActivity.getApplicationContext()); in startDrag() 90 mDragObject.originalView = originalView; in startDrag() 98 final DragView dragView = mDragObject.dragView = drawable != null in startDrag() 118 mDragObject.dragComplete = false; in startDrag() 120 mDragObject.xOffset = mMotionDown.x - (dragLayerX + dragRegionLeft); in startDrag() 121 mDragObject.yOffset = mMotionDown.y - (dragLayerY + dragRegionTop); in startDrag() 125 mDragObject.stateAnnouncer = DragViewStateAnnouncer.createFor(dragView); in startDrag() 128 mDragObject.dragSource = source; in startDrag() 129 mDragObject.dragInfo = dragInfo; in startDrag() 130 mDragObject.originalDragInfo = mDragObject.dragInfo.makeShallowCopy(); in startDrag() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | FlingAnimation.java | 31 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() 102 mDropTarget.completeDrop(mDragObject); in run() 106 mDropTarget.onDrop(mDragObject, mDragOptions); in run() 107 mDragLayer.animateView(mDragObject.dragView, this, duration, tInterpolator, in run()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | SecondaryDropTarget.java | 320 private DragObject mDragObject; field in SecondaryDropTarget.DeferredOnComplete 330 mDragObject = d; in onDropCompleted() 336 mDragObject.dragInfo.user, PackageManager.MATCH_UNINSTALLED_PACKAGES) == null) { in onLauncherResume() 337 mDragObject.dragSource = mOriginal; in onLauncherResume() 338 mOriginal.onDropCompleted(SecondaryDropTarget.this, mDragObject, true); in onLauncherResume() 339 mStatsLogManager.logger().withInstanceId(mDragObject.logInstanceId) in onLauncherResume() 343 mStatsLogManager.logger().withInstanceId(mDragObject.logInstanceId) in onLauncherResume() 349 mDragObject.dragSource = mOriginal; in sendFailure() 350 mDragObject.cancelled = true; in sendFailure() 351 mOriginal.onDropCompleted(SecondaryDropTarget.this, mDragObject, false); in sendFailure()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/dragndrop/ |
D | AppWidgetHostViewDragListener.java | 27 private DropTarget.DragObject mDragObject; field in AppWidgetHostViewDragListener 37 mDragObject = dragObject; in onDragStart() 53 if (mDragObject.dragView != null) { in onDragContentChanged() 54 mDragObject.dragView.invalidate(); in onDragContentChanged()
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
D | Folder.java | 1494 private final DragObject mDragObject; field in Folder.OnScrollHintListener 1497 mDragObject = object; in OnScrollHintListener() 1518 mScrollPauseAlarm.setOnAlarmListener(new OnScrollFinishedListener(mDragObject)); in onAlarm() 1525 private final DragObject mDragObject; field in Folder.OnScrollFinishedListener 1528 mDragObject = object; in OnScrollFinishedListener() 1537 onDragOver(mDragObject); in onAlarm()
|