/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | DragController.java | 185 final DragView dragView = mDragObject.dragView = new DragView(mLauncher, b, registrationX, in startDrag() local 187 dragView.setItemInfo(dragInfo); in startDrag() 197 mDragObject.stateAnnouncer = DragViewStateAnnouncer.createFor(dragView); in startDrag() 208 dragView.setDragVisualizeOffset(new Point(dragOffset)); in startDrag() 211 dragView.setDragRegion(new Rect(dragRegion)); in startDrag() 215 dragView.show(mLastTouch[0], mLastTouch[1]); in startDrag() 226 return dragView; in startDrag() 240 if (mDragObject != null && mDragObject.dragView != null) { in addFirstFrameAnimationHelper() 241 mDragObject.dragView.mFirstFrameAnimatorHelper.addTo(anim); in addFirstFrameAnimationHelper() 309 if (mDragObject.dragView != null) { in endDrag() [all …]
|
D | DragLayer.java | 239 public void animateViewIntoPosition(DragView dragView, final int[] pos, float alpha, in animateViewIntoPosition() argument 243 getViewRectRelativeToSelf(dragView, r); in animateViewIntoPosition() 247 animateViewIntoPosition(dragView, fromX, fromY, pos[0], pos[1], alpha, 1, 1, scaleX, scaleY, in animateViewIntoPosition() 251 public void animateViewIntoPosition(DragView dragView, final View child, View anchorView) { in animateViewIntoPosition() argument 252 animateViewIntoPosition(dragView, child, -1, anchorView); in animateViewIntoPosition() 255 public void animateViewIntoPosition(DragView dragView, final View child, int duration, in animateViewIntoPosition() argument 262 getViewRectRelativeToSelf(dragView, r); in animateViewIntoPosition() 282 toScale = scale / dragView.getIntrinsicIconScaleFactor(); in animateViewIntoPosition() 289 toY -= dragView.getMeasuredHeight() * (1 - toScale) / 2; in animateViewIntoPosition() 290 if (dragView.getDragVisualizeOffset() != null) { in animateViewIntoPosition() [all …]
|
D | BaseItemDragListener.java | 151 dragObject.dragView.setColor( in onPreDragStart() 158 dragObject.dragView.setColor(0); in onPreDragEnd()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | FlingAnimation.java | 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() 110 mDragLayer.animateView(mDragObject.dragView, this, duration, tInterpolator, in run() 178 final DragView dragView = (DragView) mDragLayer.getAnimatedView(); in onAnimationUpdate() local 180 dragView.setTranslationX(time * mUX + mFrom.left + mAX * time * time / 2); in onAnimationUpdate() 181 dragView.setTranslationY(time * mUY + mFrom.top + mAY * time * time / 2); in onAnimationUpdate() 182 dragView.setAlpha(1f - mAlphaInterpolator.getInterpolation(t)); in onAnimationUpdate()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | CellLayout.java | 961 Point dragOffset = dragObject.dragView.getDragVisualizeOffset(); in visualizeDropLocation() 962 Rect dragRegion = dragObject.dragView.getDragRegion(); in visualizeDropLocation() 1485 int[] direction, View dragView, ItemConfiguration currentState) { in pushViewsToTempLocation() argument 1535 if (!cluster.views.contains(v) && v != dragView) { in pushViewsToTempLocation() 1580 int[] direction, View dragView, ItemConfiguration currentState) { in addViewsToTempLocation() argument 1801 int spanX, int spanY, int[] direction, View dragView, boolean decX, in findReorderSolution() argument 1817 success = rearrangementExists(result[0], result[1], spanX, spanY, direction, dragView, in findReorderSolution() 1825 direction, dragView, false, solution); in findReorderSolution() 1828 direction, dragView, true, solution); in findReorderSolution() 1856 private void copySolutionToTempState(ItemConfiguration solution, View dragView) { in copySolutionToTempState() argument [all …]
|
D | ButtonDropTarget.java | 180 d.dragView.setColor(mHoverColor); in onDragEnter() 233 d.dragView.setColor(0); in onDragExit() 237 d.dragView.setColor(mHoverColor); in onDragExit() 288 dragLayer.getViewRectRelativeToSelf(d.dragView, from); in onDrop() 300 dragLayer.animateView(d.dragView, from, to, scale, 1f, 1f, 0.1f, 0.1f, in onDrop() 326 int viewWidth = dragObject.dragView.getMeasuredWidth(); in getIconRect() 327 int viewHeight = dragObject.dragView.getMeasuredHeight(); in getIconRect()
|
D | Workspace.java | 381 if (dragObject.dragView != null) { in onDragStart() 382 Bitmap preview = dragObject.dragView.getPreviewBitmap(); in onDragStart() 1678 int[] targetCell, float distance, boolean external, DragView dragView) { in createUserFolderIfNecessary() argument 1716 boolean animate = dragView != null; in createUserFolderIfNecessary() 1722 fi.performCreateAnimation(destInfo, v, sourceInfo, dragView, folderLocation, scale in createUserFolderIfNecessary() 1807 dropTargetLayout, mTargetCell, distance, false, d.dragView) || in onDrop() 1919 if (d.dragView.hasDrawn()) { in onDrop() 1936 animateWidgetDrop(info, parent, d.dragView, null, animationType, cell, false); in onDrop() 1939 mLauncher.getDragLayer().animateViewIntoPosition(d.dragView, cell, duration, in onDrop() 2537 animateWidgetDrop(info, cellLayout, d.dragView, onAnimationCompleteRunnable, [all …]
|
D | DropTarget.java | 48 public DragView dragView = null; field in DropTarget.DragObject 81 Rect dragRegion = dragView.getDragRegion(); in getVisualCenter()
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
D | Folder.java | 731 mScrollAreaOffset = d.dragView.getDragRegionWidth() / 2 - d.xOffset; in onDragEnter() 1204 if (d.dragView.hasDrawn()) { in onDrop() 1211 mLauncher.getDragLayer().animateViewIntoPosition(d.dragView, currentDragView, null); in onDrop()
|
D | FolderIcon.java | 402 onDrop(item, d.dragView, null, 1.0f, in onDrop()
|