/packages/apps/Launcher2/src/com/android/launcher2/ |
D | DeleteDropTarget.java | 191 d.dragView.setColor(mHoverColor); in onDragExit() 198 dragLayer.getViewRectRelativeToSelf(d.dragView, from); in animateToTrashAndCompleteDrop() 199 Rect to = getIconRect(d.dragView.getMeasuredWidth(), d.dragView.getMeasuredHeight(), in animateToTrashAndCompleteDrop() 212 dragLayer.animateView(d.dragView, from, to, scale, 1f, 1f, 0.1f, 0.1f, in animateToTrashAndCompleteDrop() 259 final Rect to = getIconRect(d.dragView.getMeasuredWidth(), d.dragView.getMeasuredHeight(), in createFlingToTrashAnimatorListener() 262 dragLayer.getViewRectRelativeToSelf(d.dragView, from); in createFlingToTrashAnimatorListener() 286 final DragView dragView = (DragView) dragLayer.getAnimatedView(); in createFlingToTrashAnimatorListener() 289 float initialScale = dragView.getInitialScale(); in createFlingToTrashAnimatorListener() 291 float scale = dragView.getScaleX(); in createFlingToTrashAnimatorListener() 292 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 | 1975 d.dragView, mDragViewVisualCenter); 2094 int[] targetCell, float distance, boolean external, DragView dragView, 2133 boolean animate = dragView != null; 2135 fi.performCreateAnimation(destInfo, v, sourceInfo, dragView, folderLocation, scale, 2170 mDragViewVisualCenter = getDragViewVisualCenter(d.x, d.y, d.xOffset, d.yOffset, d.dragView, 2216 dropTargetLayout, mTargetCell, distance, false, d.dragView, null)) { 2332 if (d.dragView.hasDrawn()) { 2337 animateWidgetDrop(info, parent, d.dragView, 2341 mLauncher.getDragLayer().animateViewIntoPosition(d.dragView, cell, duration, 2628 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 | 620 float[] r = getDragViewVisualCenter(d.x, d.y, d.xOffset, d.yOffset, d.dragView, null); in onDragOver() 640 DragView dragView, float[] recycle) { in getDragViewVisualCenter() argument 656 res[0] = left + dragView.getDragRegion().width() / 2; in getDragViewVisualCenter() 657 res[1] = top + dragView.getDragRegion().height() / 2; in getDragViewVisualCenter() 1013 if (d.dragView.hasDrawn()) { in onDrop() 1014 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 | DeleteDropTarget.java | 225 d.dragView.setColor(mHoverColor); in onDragExit() 232 dragLayer.getViewRectRelativeToSelf(d.dragView, from); in animateToTrashAndCompleteDrop() 233 final Rect to = getIconRect(d.dragView.getMeasuredWidth(), d.dragView.getMeasuredHeight(), in animateToTrashAndCompleteDrop() 248 dragLayer.animateView(d.dragView, from, to, scale, 1f, 1f, 0.1f, 0.1f, in animateToTrashAndCompleteDrop() 356 final Rect to = getIconRect(d.dragView.getMeasuredWidth(), d.dragView.getMeasuredHeight(), in createFlingToTrashAnimatorListener() 359 dragLayer.getViewRectRelativeToSelf(d.dragView, from); in createFlingToTrashAnimatorListener() 383 final DragView dragView = (DragView) dragLayer.getAnimatedView(); in createFlingToTrashAnimatorListener() 386 float initialScale = dragView.getInitialScale(); in createFlingToTrashAnimatorListener() 388 float scale = dragView.getScaleX(); in createFlingToTrashAnimatorListener() 389 float x1o = ((1f - scale) * dragView.getMeasuredWidth()) / 2f; in createFlingToTrashAnimatorListener() [all …]
|
D | DragLayer.java | 492 public void animateViewIntoPosition(DragView dragView, final View child) { in animateViewIntoPosition() argument 493 animateViewIntoPosition(dragView, child, null, null); in animateViewIntoPosition() 496 public void animateViewIntoPosition(DragView dragView, final int[] pos, float alpha, in animateViewIntoPosition() argument 500 getViewRectRelativeToSelf(dragView, r); in animateViewIntoPosition() 504 animateViewIntoPosition(dragView, fromX, fromY, pos[0], pos[1], alpha, 1, 1, scaleX, scaleY, in animateViewIntoPosition() 508 public void animateViewIntoPosition(DragView dragView, final View child, in animateViewIntoPosition() argument 510 animateViewIntoPosition(dragView, child, -1, onFinishAnimationRunnable, anchorView); in animateViewIntoPosition() 513 public void animateViewIntoPosition(DragView dragView, final View child, int duration, in animateViewIntoPosition() argument 520 getViewRectRelativeToSelf(dragView, r); in animateViewIntoPosition() 540 toScale = scale / dragView.getIntrinsicIconScaleFactor(); in animateViewIntoPosition() [all …]
|
D | DragController.java | 234 final DragView dragView = mDragObject.dragView = new DragView(mLauncher, b, registrationX, in startDrag() local 238 dragView.setDragVisualizeOffset(new Point(dragOffset)); in startDrag() 241 dragView.setDragRegion(new Rect(dragRegion)); in startDrag() 245 dragView.show(mMotionDownX, mMotionDownY); in startDrag() 247 return dragView; in startDrag() 349 if (mDragObject.dragView != null) { in endDrag() 352 mDragObject.dragView.remove(); in endDrag() 354 mDragObject.dragView = null; in endDrag() 371 void onDeferredEndDrag(DragView dragView) { in onDeferredEndDrag() argument 372 dragView.remove(); in onDeferredEndDrag() [all …]
|
D | CellLayout.java | 1812 int[] direction, View dragView, ItemConfiguration currentState) { in pushViewsToTempLocation() argument 1862 if (!cluster.views.contains(v) && v != dragView) { in pushViewsToTempLocation() 1907 int[] direction, View dragView, ItemConfiguration currentState) { in addViewsToTempLocation() argument 2146 int spanX, int spanY, int[] direction, View dragView, boolean decX, in findReorderSolution() argument 2162 success = rearrangementExists(result[0], result[1], spanX, spanY, direction, dragView, in findReorderSolution() 2170 direction, dragView, false, solution); in findReorderSolution() 2173 direction, dragView, true, solution); in findReorderSolution() 2201 private void copySolutionToTempState(ItemConfiguration solution, View dragView) { in copySolutionToTempState() argument 2211 if (child == dragView) continue; in copySolutionToTempState() 2226 private void animateItemsToSolution(ItemConfiguration solution, View dragView, boolean in animateItemsToSolution() argument [all …]
|
D | Workspace.java | 2688 d.dragView, mDragViewVisualCenter); in acceptDrop() 2814 int[] targetCell, float distance, boolean external, DragView dragView, in createUserFolderIfNecessary() argument 2853 boolean animate = dragView != null; in createUserFolderIfNecessary() 2855 fi.performCreateAnimation(destInfo, v, sourceInfo, dragView, folderLocation, scale, in createUserFolderIfNecessary() 2890 mDragViewVisualCenter = getDragViewVisualCenter(d.x, d.y, d.xOffset, d.yOffset, d.dragView, in onDrop() 2936 dropTargetLayout, mTargetCell, distance, false, d.dragView, null)) { in onDrop() 3053 if (d.dragView.hasDrawn()) { in onDrop() 3058 animateWidgetDrop(info, parent, d.dragView, in onDrop() 3062 mLauncher.getDragLayer().animateViewIntoPosition(d.dragView, cell, duration, in onDrop() 3348 DragView dragView, float originX, float originY, boolean exact) { [all …]
|
D | PagedView.java | 2582 public FlingAlongVectorAnimatorUpdateListener(View dragView, PointF vel, Rect from, in FlingAlongVectorAnimatorUpdateListener() argument 2584 mDragView = dragView; in FlingAlongVectorAnimatorUpdateListener() 2611 private Runnable createPostDeleteAnimationRunnable(final View dragView) { in createPostDeleteAnimationRunnable() argument 2615 int dragViewIndex = indexOfChild(dragView); in createPostDeleteAnimationRunnable() 2690 removeView(dragView); in createPostDeleteAnimationRunnable() 2691 onRemoveView(dragView, true); in createPostDeleteAnimationRunnable() 2726 final View dragView = mDragView; in onFlingToDelete() local 2727 from.left = (int) dragView.getTranslationX(); in onFlingToDelete() 2728 from.top = (int) dragView.getTranslationY(); in onFlingToDelete() 2729 AnimatorUpdateListener updateCb = new FlingAlongVectorAnimatorUpdateListener(dragView, vel, in onFlingToDelete() [all …]
|
D | Folder.java | 666 final DragView dragView = d.dragView; in onDragOver() local 668 final float[] r = getDragViewVisualCenter(d.x, d.y, d.xOffset, d.yOffset, dragView, null); in onDragOver() 709 DragView dragView, float[] recycle) { in getDragViewVisualCenter() argument 725 res[0] = left + dragView.getDragRegion().width() / 2; in getDragViewVisualCenter() 726 res[1] = top + dragView.getDragRegion().height() / 2; in getDragViewVisualCenter() 1208 if (d.dragView.hasDrawn()) { in onDrop() 1215 mLauncher.getDragLayer().animateViewIntoPosition(d.dragView, currentDragView, in onDrop()
|
D | ButtonDropTarget.java | 89 d.dragView.setColor(mHoverColor); in onDragEnter() 97 d.dragView.setColor(0); in onDragExit()
|
D | DropTarget.java | 49 public DragView dragView = null; field in DropTarget.DragObject
|
D | Launcher.java | 4419 public void startDrag(View dragView, ItemInfo dragInfo, DragSource source) { in startDrag() argument 4420 dragView.setTag(dragInfo); in startDrag() 4421 mWorkspace.onDragStartedWithItem(dragView); in startDrag() 4422 mWorkspace.beginDragShared(dragView, source); in startDrag()
|
D | FolderIcon.java | 476 onDrop(item, d.dragView, null, 1.0f, mInfo.contents.size(), d.postAnimationRunnable, d);
|
/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
|