| /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 | 554 public void animateViewIntoPosition(DragView dragView, final int[] pos, float alpha, in animateViewIntoPosition() argument 558 getViewRectRelativeToSelf(dragView, r); in animateViewIntoPosition() 562 animateViewIntoPosition(dragView, fromX, fromY, pos[0], pos[1], alpha, 1, 1, scaleX, scaleY, in animateViewIntoPosition() 566 public void animateViewIntoPosition(DragView dragView, final View child, in animateViewIntoPosition() argument 568 animateViewIntoPosition(dragView, child, -1, onFinishAnimationRunnable, anchorView); in animateViewIntoPosition() 571 public void animateViewIntoPosition(DragView dragView, final View child, int duration, in animateViewIntoPosition() argument 578 getViewRectRelativeToSelf(dragView, r); in animateViewIntoPosition() 598 toScale = scale / dragView.getIntrinsicIconScaleFactor(); in animateViewIntoPosition() 604 toY -= dragView.getMeasuredHeight() * (1 - toScale) / 2; in animateViewIntoPosition() 605 if (dragView.getDragVisualizeOffset() != null) { in animateViewIntoPosition() [all …]
|
| D | DragController.java | 242 final DragView dragView = mDragObject.dragView = new DragView(mLauncher, b, registrationX, in startDrag() local 254 mDragObject.stateAnnouncer = DragViewStateAnnouncer.createFor(dragView); in startDrag() 261 dragView.setDragVisualizeOffset(new Point(dragOffset)); in startDrag() 264 dragView.setDragRegion(new Rect(dragRegion)); in startDrag() 268 dragView.show(mMotionDownX, mMotionDownY); in startDrag() 270 return dragView; in startDrag() 372 if (mDragObject.dragView != null) { in endDrag() 375 mDragObject.dragView.remove(); in endDrag() 377 mDragObject.dragView = null; in endDrag() 394 void onDeferredEndDrag(DragView dragView) { in onDeferredEndDrag() argument [all …]
|
| D | CellLayout.java | 1068 Point dragOffset = dragObject.dragView.getDragVisualizeOffset(); in visualizeDropLocation() 1069 Rect dragRegion = dragObject.dragView.getDragRegion(); in visualizeDropLocation() 1656 int[] direction, View dragView, ItemConfiguration currentState) { in pushViewsToTempLocation() argument 1706 if (!cluster.views.contains(v) && v != dragView) { in pushViewsToTempLocation() 1751 int[] direction, View dragView, ItemConfiguration currentState) { in addViewsToTempLocation() argument 1990 int spanX, int spanY, int[] direction, View dragView, boolean decX, in findReorderSolution() argument 2006 success = rearrangementExists(result[0], result[1], spanX, spanY, direction, dragView, in findReorderSolution() 2014 direction, dragView, false, solution); in findReorderSolution() 2017 direction, dragView, true, solution); in findReorderSolution() 2045 private void copySolutionToTempState(ItemConfiguration solution, View dragView) { in copySolutionToTempState() argument [all …]
|
| D | ButtonDropTarget.java | 116 d.dragView.setColor(mHoverColor); in onDragEnter() 184 d.dragView.setColor(0); in onDragExit() 188 d.dragView.setColor(mHoverColor); in onDragExit() 228 dragLayer.getViewRectRelativeToSelf(d.dragView, from); in onDrop() 232 final Rect to = getIconRect(d.dragView.getMeasuredWidth(), d.dragView.getMeasuredHeight(), in onDrop() 245 dragLayer.animateView(d.dragView, from, to, scale, 1f, 1f, 0.1f, 0.1f, in onDrop()
|
| D | DeleteDropTarget.java | 82 d.dragView.setColor(0); in onFlingToDelete() 83 d.dragView.updateInitialScaleToCurrentScale(); in onFlingToDelete() 87 getIconRect(d.dragView.getMeasuredWidth(), d.dragView.getMeasuredHeight(), in onFlingToDelete() 125 dragLayer.animateView(d.dragView, fling, duration, tInterpolator, onAnimationEndRunnable, in onFlingToDelete()
|
| D | Workspace.java | 2643 int[] targetCell, float distance, boolean external, DragView dragView, in createUserFolderIfNecessary() argument 2682 boolean animate = dragView != null; in createUserFolderIfNecessary() 2684 fi.performCreateAnimation(destInfo, v, sourceInfo, dragView, folderLocation, scale, in createUserFolderIfNecessary() 2766 dropTargetLayout, mTargetCell, distance, false, d.dragView, null)) { in onDrop() 2885 if (d.dragView.hasDrawn()) { in onDrop() 2892 animateWidgetDrop(info, parent, d.dragView, in onDrop() 2898 mLauncher.getDragLayer().animateViewIntoPosition(d.dragView, cell, duration, in onDrop() 3204 DragView dragView, float originX, float originY, boolean exact) { 3288 layout = findMatchingPageForDragOver(d.dragView, d.x, d.y, false); 3627 animateWidgetDrop(info, cellLayout, d.dragView, onAnimationCompleteRunnable, [all …]
|
| D | DropTarget.java | 49 public DragView dragView = null; field in DropTarget.DragObject 91 res[0] = left + dragView.getDragRegion().width() / 2; in getVisualCenter() 92 res[1] = top + dragView.getDragRegion().height() / 2; in getVisualCenter()
|
| D | Folder.java | 705 mScrollAreaOffset = d.dragView.getDragRegionWidth() / 2 - d.xOffset; in onDragEnter() 1258 if (d.dragView.hasDrawn()) { in onDrop() 1265 mLauncher.getDragLayer().animateViewIntoPosition(d.dragView, currentDragView, in onDrop()
|
| D | Launcher.java | 4735 public void startDrag(View dragView, ItemInfo dragInfo, DragSource source) { in startDrag() argument 4736 dragView.setTag(dragInfo); in startDrag() 4737 mWorkspace.onExternalDragStartedWithItem(dragView); in startDrag() 4738 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
|