Home
last modified time | relevance | path

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

/packages/apps/Launcher2/src/com/android/launcher2/
DDeleteDropTarget.java200 d.dragView.setColor(mHoverColor); in onDragExit()
207 dragLayer.getViewRectRelativeToSelf(d.dragView, from); in animateToTrashAndCompleteDrop()
208 Rect to = getIconRect(d.dragView.getMeasuredWidth(), d.dragView.getMeasuredHeight(), in animateToTrashAndCompleteDrop()
221 dragLayer.animateView(d.dragView, from, to, scale, 1f, 1f, 0.1f, 0.1f, in animateToTrashAndCompleteDrop()
268 final Rect to = getIconRect(d.dragView.getMeasuredWidth(), d.dragView.getMeasuredHeight(), in createFlingToTrashAnimatorListener()
271 dragLayer.getViewRectRelativeToSelf(d.dragView, from); in createFlingToTrashAnimatorListener()
295 final DragView dragView = (DragView) dragLayer.getAnimatedView(); in createFlingToTrashAnimatorListener()
298 float initialScale = dragView.getInitialScale(); in createFlingToTrashAnimatorListener()
300 float scale = dragView.getScaleX(); in createFlingToTrashAnimatorListener()
301 float x1o = ((1f - scale) * dragView.getMeasuredWidth()) / 2f; in createFlingToTrashAnimatorListener()
[all …]
DDragLayer.java454 public void animateViewIntoPosition(DragView dragView, final View child) { in animateViewIntoPosition() argument
455 animateViewIntoPosition(dragView, child, null); in animateViewIntoPosition()
458 public void animateViewIntoPosition(DragView dragView, final int[] pos, float alpha, in animateViewIntoPosition() argument
462 getViewRectRelativeToSelf(dragView, r); in animateViewIntoPosition()
466 animateViewIntoPosition(dragView, fromX, fromY, pos[0], pos[1], alpha, 1, 1, scaleX, scaleY, in animateViewIntoPosition()
470 public void animateViewIntoPosition(DragView dragView, final View child, in animateViewIntoPosition() argument
472 animateViewIntoPosition(dragView, child, -1, onFinishAnimationRunnable, null); in animateViewIntoPosition()
475 public void animateViewIntoPosition(DragView dragView, final View child, int duration, in animateViewIntoPosition() argument
482 getViewRectRelativeToSelf(dragView, r); in animateViewIntoPosition()
504 toY -= dragView.getMeasuredHeight() * (1 - scale) / 2; in animateViewIntoPosition()
[all …]
DWorkspace.java1976 d.dragView, mDragViewVisualCenter);
2095 int[] targetCell, float distance, boolean external, DragView dragView,
2134 boolean animate = dragView != null;
2136 fi.performCreateAnimation(destInfo, v, sourceInfo, dragView, folderLocation, scale,
2171 mDragViewVisualCenter = getDragViewVisualCenter(d.x, d.y, d.xOffset, d.yOffset, d.dragView,
2217 dropTargetLayout, mTargetCell, distance, false, d.dragView, null)) {
2333 if (d.dragView.hasDrawn()) {
2338 animateWidgetDrop(info, parent, d.dragView,
2342 mLauncher.getDragLayer().animateViewIntoPosition(d.dragView, cell, duration,
2629 boolean overlaps(CellLayout cl, DragView dragView,
[all …]
DCellLayout.java1824 int[] direction, View dragView, ItemConfiguration currentState) { in pushViewsToTempLocation() argument
1874 if (!cluster.views.contains(v) && v != dragView) { in pushViewsToTempLocation()
1919 int[] direction, View dragView, ItemConfiguration currentState) { in addViewsToTempLocation() argument
2156 int spanY, int[] direction, View dragView, boolean decX, ItemConfiguration solution) { in simpleSwap() argument
2171 success = rearrangementExists(result[0], result[1], spanX, spanY, direction, dragView, in simpleSwap()
2179 dragView, false, solution); in simpleSwap()
2182 dragView, true, solution); in simpleSwap()
2210 private void copySolutionToTempState(ItemConfiguration solution, View dragView) { in copySolutionToTempState() argument
2220 if (child == dragView) continue; in copySolutionToTempState()
2235 private void animateItemsToSolution(ItemConfiguration solution, View dragView, boolean in animateItemsToSolution() argument
[all …]
DDragController.java246 final DragView dragView = mDragObject.dragView = new DragView(mLauncher, b, registrationX, in startDrag() local
250 dragView.setDragVisualizeOffset(new Point(dragOffset)); in startDrag()
253 dragView.setDragRegion(new Rect(dragRegion)); in startDrag()
256 dragView.show(mMotionDownX, mMotionDownY); in startDrag()
358 if (mDragObject.dragView != null) { in endDrag()
361 mDragObject.dragView.remove(); in endDrag()
363 mDragObject.dragView = null; in endDrag()
380 void onDeferredEndDrag(DragView dragView) { in onDeferredEndDrag() argument
381 dragView.remove(); in onDeferredEndDrag()
485 mDragObject.dragView.move(x, y); in handleMoveEvent()
[all …]
DFolder.java623 float[] r = getDragViewVisualCenter(d.x, d.y, d.xOffset, d.yOffset, d.dragView, null); in onDragOver()
643 DragView dragView, float[] recycle) { in getDragViewVisualCenter() argument
659 res[0] = left + dragView.getDragRegion().width() / 2; in getDragViewVisualCenter()
660 res[1] = top + dragView.getDragRegion().height() / 2; in getDragViewVisualCenter()
1016 if (d.dragView.hasDrawn()) { in onDrop()
1017 mLauncher.getDragLayer().animateViewIntoPosition(d.dragView, mCurrentDragView); in onDrop()
DButtonDropTarget.java91 d.dragView.setColor(mHoverColor); in onDragEnter()
99 d.dragView.setColor(0); in onDragExit()
DDropTarget.java49 public DragView dragView = null; field in DropTarget.DragObject
DFolderIcon.java427 onDrop(item, d.dragView, null, 1.0f, mInfo.contents.size(), d.postAnimationRunnable, d);
/packages/apps/Launcher3/src/com/android/launcher3/
DDeleteDropTarget.java240 d.dragView.setColor(mHoverColor); in onDragExit()
247 dragLayer.getViewRectRelativeToSelf(d.dragView, from); in animateToTrashAndCompleteDrop()
251 final Rect to = getIconRect(d.dragView.getMeasuredWidth(), d.dragView.getMeasuredHeight(), in animateToTrashAndCompleteDrop()
266 dragLayer.animateView(d.dragView, from, to, scale, 1f, 1f, 0.1f, 0.1f, in animateToTrashAndCompleteDrop()
376 final Rect to = getIconRect(d.dragView.getMeasuredWidth(), d.dragView.getMeasuredHeight(), in createFlingToTrashAnimatorListener()
379 dragLayer.getViewRectRelativeToSelf(d.dragView, from); in createFlingToTrashAnimatorListener()
403 final DragView dragView = (DragView) dragLayer.getAnimatedView(); in createFlingToTrashAnimatorListener()
406 float initialScale = dragView.getInitialScale(); in createFlingToTrashAnimatorListener()
408 float scale = dragView.getScaleX(); in createFlingToTrashAnimatorListener()
409 float x1o = ((1f - scale) * dragView.getMeasuredWidth()) / 2f; in createFlingToTrashAnimatorListener()
[all …]
DDragLayer.java532 public void animateViewIntoPosition(DragView dragView, final View child) { in animateViewIntoPosition() argument
533 animateViewIntoPosition(dragView, child, null, null); in animateViewIntoPosition()
536 public void animateViewIntoPosition(DragView dragView, final int[] pos, float alpha, in animateViewIntoPosition() argument
540 getViewRectRelativeToSelf(dragView, r); in animateViewIntoPosition()
544 animateViewIntoPosition(dragView, fromX, fromY, pos[0], pos[1], alpha, 1, 1, scaleX, scaleY, in animateViewIntoPosition()
548 public void animateViewIntoPosition(DragView dragView, final View child, in animateViewIntoPosition() argument
550 animateViewIntoPosition(dragView, child, -1, onFinishAnimationRunnable, anchorView); in animateViewIntoPosition()
553 public void animateViewIntoPosition(DragView dragView, final View child, int duration, in animateViewIntoPosition() argument
560 getViewRectRelativeToSelf(dragView, r); in animateViewIntoPosition()
580 toScale = scale / dragView.getIntrinsicIconScaleFactor(); in animateViewIntoPosition()
[all …]
DDragController.java240 final DragView dragView = mDragObject.dragView = new DragView(mLauncher, b, registrationX, in startDrag() local
244 dragView.setDragVisualizeOffset(new Point(dragOffset)); in startDrag()
247 dragView.setDragRegion(new Rect(dragRegion)); in startDrag()
251 dragView.show(mMotionDownX, mMotionDownY); in startDrag()
253 return dragView; in startDrag()
354 if (mDragObject.dragView != null) { in endDrag()
357 mDragObject.dragView.remove(); in endDrag()
359 mDragObject.dragView = null; in endDrag()
376 void onDeferredEndDrag(DragView dragView) { in onDeferredEndDrag() argument
377 dragView.remove(); in onDeferredEndDrag()
[all …]
DCellLayout.java1698 int[] direction, View dragView, ItemConfiguration currentState) { in pushViewsToTempLocation() argument
1748 if (!cluster.views.contains(v) && v != dragView) { in pushViewsToTempLocation()
1793 int[] direction, View dragView, ItemConfiguration currentState) { in addViewsToTempLocation() argument
2032 int spanX, int spanY, int[] direction, View dragView, boolean decX, in findReorderSolution() argument
2048 success = rearrangementExists(result[0], result[1], spanX, spanY, direction, dragView, in findReorderSolution()
2056 direction, dragView, false, solution); in findReorderSolution()
2059 direction, dragView, true, solution); in findReorderSolution()
2087 private void copySolutionToTempState(ItemConfiguration solution, View dragView) { in copySolutionToTempState() argument
2097 if (child == dragView) continue; in copySolutionToTempState()
2112 private void animateItemsToSolution(ItemConfiguration solution, View dragView, boolean in animateItemsToSolution() argument
[all …]
DWorkspace.java2862 d.dragView, mDragViewVisualCenter); in acceptDrop()
2988 int[] targetCell, float distance, boolean external, DragView dragView, in createUserFolderIfNecessary() argument
3027 boolean animate = dragView != null; in createUserFolderIfNecessary()
3029 fi.performCreateAnimation(destInfo, v, sourceInfo, dragView, folderLocation, scale, in createUserFolderIfNecessary()
3064 mDragViewVisualCenter = getDragViewVisualCenter(d.x, d.y, d.xOffset, d.yOffset, d.dragView, in onDrop()
3110 dropTargetLayout, mTargetCell, distance, false, d.dragView, null)) { in onDrop()
3229 if (d.dragView.hasDrawn()) { in onDrop()
3234 animateWidgetDrop(info, parent, d.dragView, in onDrop()
3238 mLauncher.getDragLayer().animateViewIntoPosition(d.dragView, cell, duration, in onDrop()
3522 DragView dragView, float originX, float originY, boolean exact) {
[all …]
DPagedView.java2631 public FlingAlongVectorAnimatorUpdateListener(View dragView, PointF vel, Rect from, in FlingAlongVectorAnimatorUpdateListener() argument
2633 mDragView = dragView; in FlingAlongVectorAnimatorUpdateListener()
2660 private Runnable createPostDeleteAnimationRunnable(final View dragView) { in createPostDeleteAnimationRunnable() argument
2664 int dragViewIndex = indexOfChild(dragView); in createPostDeleteAnimationRunnable()
2739 removeView(dragView); in createPostDeleteAnimationRunnable()
2740 onRemoveView(dragView, true); in createPostDeleteAnimationRunnable()
2775 final View dragView = mDragView; in onFlingToDelete() local
2776 from.left = (int) dragView.getTranslationX(); in onFlingToDelete()
2777 from.top = (int) dragView.getTranslationY(); in onFlingToDelete()
2778 AnimatorUpdateListener updateCb = new FlingAlongVectorAnimatorUpdateListener(dragView, vel, in onFlingToDelete()
[all …]
DFolder.java738 final DragView dragView = d.dragView; in onDragOver() local
740 final float[] r = getDragViewVisualCenter(d.x, d.y, d.xOffset, d.yOffset, dragView, null); in onDragOver()
778 DragView dragView, float[] recycle) { in getDragViewVisualCenter() argument
794 res[0] = left + dragView.getDragRegion().width() / 2; in getDragViewVisualCenter()
795 res[1] = top + dragView.getDragRegion().height() / 2; in getDragViewVisualCenter()
1276 if (d.dragView.hasDrawn()) { in onDrop()
1283 mLauncher.getDragLayer().animateViewIntoPosition(d.dragView, currentDragView, in onDrop()
DButtonDropTarget.java89 d.dragView.setColor(mHoverColor); in onDragEnter()
97 d.dragView.setColor(0); in onDragExit()
DDropTarget.java49 public DragView dragView = null; field in DropTarget.DragObject
DLauncher.java5045 public void startDrag(View dragView, ItemInfo dragInfo, DragSource source) { in startDrag() argument
5046 dragView.setTag(dragInfo); in startDrag()
5047 mWorkspace.onExternalDragStartedWithItem(dragView); in startDrag()
5048 mWorkspace.beginExternalDragShared(dragView, source); in startDrag()
DFolderIcon.java486 onDrop(item, d.dragView, null, 1.0f, mInfo.contents.size(), d.postAnimationRunnable, d);
/packages/apps/Music/src/com/android/music/
DTouchInterceptor.java327 dragView(x, y); in onTouchEvent()
400 private void dragView(int x, int y) { in dragView() method