Home
last modified time | relevance | path

Searched refs:dragView (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragController.java177 final DragView dragView = mDragObject.dragView = new DragView(mLauncher, b, registrationX, in startDrag() local
179 dragView.setItemInfo(dragInfo); in startDrag()
189 mDragObject.stateAnnouncer = DragViewStateAnnouncer.createFor(dragView); in startDrag()
200 dragView.setDragVisualizeOffset(new Point(dragOffset)); in startDrag()
203 dragView.setDragRegion(new Rect(dragRegion)); in startDrag()
207 dragView.show(mMotionDownX, mMotionDownY); in startDrag()
220 return dragView; in startDrag()
234 if (mDragObject != null && mDragObject.dragView != null) { in addFirstFrameAnimationHelper()
235 mDragObject.dragView.mFirstFrameAnimatorHelper.addTo(anim); in addFirstFrameAnimationHelper()
303 if (mDragObject.dragView != null) { in endDrag()
[all …]
DDragLayer.java236 public void animateViewIntoPosition(DragView dragView, final int[] pos, float alpha, in animateViewIntoPosition() argument
240 getViewRectRelativeToSelf(dragView, r); in animateViewIntoPosition()
244 animateViewIntoPosition(dragView, fromX, fromY, pos[0], pos[1], alpha, 1, 1, scaleX, scaleY, in animateViewIntoPosition()
248 public void animateViewIntoPosition(DragView dragView, final View child, View anchorView) { in animateViewIntoPosition() argument
249 animateViewIntoPosition(dragView, child, -1, anchorView); in animateViewIntoPosition()
252 public void animateViewIntoPosition(DragView dragView, final View child, int duration, in animateViewIntoPosition() argument
259 getViewRectRelativeToSelf(dragView, r); in animateViewIntoPosition()
279 toScale = scale / dragView.getIntrinsicIconScaleFactor(); in animateViewIntoPosition()
285 toY -= dragView.getMeasuredHeight() * (1 - toScale) / 2; in animateViewIntoPosition()
286 if (dragView.getDragVisualizeOffset() != null) { in animateViewIntoPosition()
[all …]
DBaseItemDragListener.java154 dragObject.dragView.setColor( in onPreDragStart()
161 dragObject.dragView.setColor(0); in onPreDragEnd()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DFlingAnimation.java61 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/
DCellLayout.java961 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 …]
DButtonDropTarget.java180 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()
DWorkspace.java387 if (dragObject.dragView != null) { in onDragStart()
388 Bitmap preview = dragObject.dragView.getPreviewBitmap(); in onDragStart()
1666 int[] targetCell, float distance, boolean external, DragView dragView) { in createUserFolderIfNecessary() argument
1704 boolean animate = dragView != null; in createUserFolderIfNecessary()
1710 fi.performCreateAnimation(destInfo, v, sourceInfo, dragView, folderLocation, scale in createUserFolderIfNecessary()
1792 dropTargetLayout, mTargetCell, distance, false, d.dragView) || in onDrop()
1904 if (d.dragView.hasDrawn()) { in onDrop()
1921 animateWidgetDrop(info, parent, d.dragView, null, animationType, cell, false); in onDrop()
1924 mLauncher.getDragLayer().animateViewIntoPosition(d.dragView, cell, duration, in onDrop()
2519 animateWidgetDrop(info, cellLayout, d.dragView, onAnimationCompleteRunnable,
[all …]
DDropTarget.java48 public DragView dragView = null; field in DropTarget.DragObject
81 Rect dragRegion = dragView.getDragRegion(); in getVisualCenter()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolder.java692 mScrollAreaOffset = d.dragView.getDragRegionWidth() / 2 - d.xOffset; in onDragEnter()
1186 if (d.dragView.hasDrawn()) { in onDrop()
1193 mLauncher.getDragLayer().animateViewIntoPosition(d.dragView, currentDragView, null); in onDrop()
DFolderIcon.java399 onDrop(item, d.dragView, null, 1.0f, mInfo.contents.size(),