/packages/apps/Launcher2/src/com/android/launcher2/ |
D | DeleteDropTarget.java | 200 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 …]
|
D | DragLayer.java | 454 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 …]
|
D | Workspace.java | 1976 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 …]
|
D | DragController.java | 246 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 …]
|
D | CellLayout.java | 1824 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 …]
|
D | Folder.java | 623 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()
|
D | ButtonDropTarget.java | 91 d.dragView.setColor(mHoverColor); in onDragEnter() 99 d.dragView.setColor(0); in onDragExit()
|
D | DropTarget.java | 49 public DragView dragView = null; field in DropTarget.DragObject
|
D | FolderIcon.java | 427 onDrop(item, d.dragView, null, 1.0f, mInfo.contents.size(), d.postAnimationRunnable, d);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | DragLayer.java | 568 public void animateViewIntoPosition(DragView dragView, final View child) { in animateViewIntoPosition() argument 569 animateViewIntoPosition(dragView, child, null, null); in animateViewIntoPosition() 572 public void animateViewIntoPosition(DragView dragView, final int[] pos, float alpha, in animateViewIntoPosition() argument 576 getViewRectRelativeToSelf(dragView, r); in animateViewIntoPosition() 580 animateViewIntoPosition(dragView, fromX, fromY, pos[0], pos[1], alpha, 1, 1, scaleX, scaleY, in animateViewIntoPosition() 584 public void animateViewIntoPosition(DragView dragView, final View child, in animateViewIntoPosition() argument 586 animateViewIntoPosition(dragView, child, -1, onFinishAnimationRunnable, anchorView); in animateViewIntoPosition() 589 public void animateViewIntoPosition(DragView dragView, final View child, int duration, in animateViewIntoPosition() argument 596 getViewRectRelativeToSelf(dragView, r); in animateViewIntoPosition() 616 toScale = scale / dragView.getIntrinsicIconScaleFactor(); in animateViewIntoPosition() [all …]
|
D | DragController.java | 256 final DragView dragView = mDragObject.dragView = new DragView(mLauncher, b, registrationX, in startDrag() local 260 dragView.setDragVisualizeOffset(new Point(dragOffset)); in startDrag() 263 dragView.setDragRegion(new Rect(dragRegion)); in startDrag() 267 dragView.show(mMotionDownX, mMotionDownY); in startDrag() 269 return dragView; in startDrag() 371 if (mDragObject.dragView != null) { in endDrag() 374 mDragObject.dragView.remove(); in endDrag() 376 mDragObject.dragView = null; in endDrag() 393 void onDeferredEndDrag(DragView dragView) { in onDeferredEndDrag() argument 394 dragView.remove(); in onDeferredEndDrag() [all …]
|
D | CellLayout.java | 1604 int[] direction, View dragView, ItemConfiguration currentState) { in pushViewsToTempLocation() argument 1654 if (!cluster.views.contains(v) && v != dragView) { in pushViewsToTempLocation() 1699 int[] direction, View dragView, ItemConfiguration currentState) { in addViewsToTempLocation() argument 1938 int spanX, int spanY, int[] direction, View dragView, boolean decX, in findReorderSolution() argument 1954 success = rearrangementExists(result[0], result[1], spanX, spanY, direction, dragView, in findReorderSolution() 1962 direction, dragView, false, solution); in findReorderSolution() 1965 direction, dragView, true, solution); in findReorderSolution() 1993 private void copySolutionToTempState(ItemConfiguration solution, View dragView) { in copySolutionToTempState() argument 2003 if (child == dragView) continue; in copySolutionToTempState() 2018 private void animateItemsToSolution(ItemConfiguration solution, View dragView, boolean in animateItemsToSolution() argument [all …]
|
D | Workspace.java | 2523 int[] targetCell, float distance, boolean external, DragView dragView, in createUserFolderIfNecessary() argument 2562 boolean animate = dragView != null; in createUserFolderIfNecessary() 2564 fi.performCreateAnimation(destInfo, v, sourceInfo, dragView, folderLocation, scale, in createUserFolderIfNecessary() 2646 dropTargetLayout, mTargetCell, distance, false, d.dragView, null)) { in onDrop() 2765 if (d.dragView.hasDrawn()) { in onDrop() 2772 animateWidgetDrop(info, parent, d.dragView, in onDrop() 2778 mLauncher.getDragLayer().animateViewIntoPosition(d.dragView, cell, duration, in onDrop() 3084 DragView dragView, float originX, float originY, boolean exact) { 3168 layout = findMatchingPageForDragOver(d.dragView, d.x, d.y, false); 3242 d.dragView.getDragVisualizeOffset(), d.dragView.getDragRegion()); [all …]
|
D | ButtonDropTarget.java | 115 d.dragView.setColor(mHoverColor); in onDragEnter() 179 d.dragView.setColor(0); in onDragExit() 183 d.dragView.setColor(mHoverColor); in onDragExit() 223 dragLayer.getViewRectRelativeToSelf(d.dragView, from); in onDrop() 227 final Rect to = getIconRect(d.dragView.getMeasuredWidth(), d.dragView.getMeasuredHeight(), in onDrop() 240 dragLayer.animateView(d.dragView, from, to, scale, 1f, 1f, 0.1f, 0.1f, in onDrop()
|
D | DeleteDropTarget.java | 113 d.dragView.setColor(0); in onFlingToDelete() 114 d.dragView.updateInitialScaleToCurrentScale(); in onFlingToDelete() 118 getIconRect(d.dragView.getMeasuredWidth(), d.dragView.getMeasuredHeight(), in onFlingToDelete() 156 dragLayer.animateView(d.dragView, fling, duration, tInterpolator, onAnimationEndRunnable, in onFlingToDelete()
|
D | DropTarget.java | 47 public DragView dragView = null; field in DropTarget.DragObject 87 res[0] = left + dragView.getDragRegion().width() / 2; in getVisualCenter() 88 res[1] = top + dragView.getDragRegion().height() / 2; in getVisualCenter()
|
D | Folder.java | 671 mScrollAreaOffset = d.dragView.getDragRegionWidth() / 2 - d.xOffset; in onDragEnter() 1219 if (d.dragView.hasDrawn()) { in onDrop() 1226 mLauncher.getDragLayer().animateViewIntoPosition(d.dragView, currentDragView, in onDrop()
|
D | Launcher.java | 4566 public void startDrag(View dragView, ItemInfo dragInfo, DragSource source) { in startDrag() argument 4567 dragView.setTag(dragInfo); in startDrag() 4568 mWorkspace.onExternalDragStartedWithItem(dragView); in startDrag() 4569 mWorkspace.beginExternalDragShared(dragView, source); in startDrag()
|
D | FolderIcon.java | 489 onDrop(item, d.dragView, null, 1.0f, mInfo.contents.size(), d.postAnimationRunnable, d);
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | FlingAnimation.java | 44 dragLayer.getViewRectRelativeToSelf(d.dragView, mFrom); in FlingAnimation() 46 float scale = d.dragView.getScaleX(); in FlingAnimation() 47 float xOffset = ((scale - 1f) * d.dragView.getMeasuredWidth()) / 2f; in FlingAnimation() 48 float yOffset = ((scale - 1f) * d.dragView.getMeasuredHeight()) / 2f; in FlingAnimation() 98 final DragView dragView = (DragView) mDragLayer.getAnimatedView(); in onAnimationUpdate() local 100 dragView.setTranslationX(time * mUX + mFrom.left + mAX * time * time / 2); in onAnimationUpdate() 101 dragView.setTranslationY(time * mUY + mFrom.top + mAY * time * time / 2); in onAnimationUpdate() 102 dragView.setAlpha(1f - mAlphaInterpolator.getInterpolation(t)); in onAnimationUpdate()
|
/packages/apps/Music/src/com/android/music/ |
D | TouchInterceptor.java | 327 dragView(x, y); in onTouchEvent() 400 private void dragView(int x, int y) { in dragView() method
|