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 …]
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 …]
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 …]
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/util/
DFlingAnimation.java55 mDragLayer.getViewRectRelativeToSelf(mDragObject.dragView, mFrom); in run()
56 float scale = mDragObject.dragView.getScaleX(); in run()
57 float xOffset = ((scale - 1f) * mDragObject.dragView.getMeasuredWidth()) / 2f; in run()
58 float yOffset = ((scale - 1f) * mDragObject.dragView.getMeasuredHeight()) / 2f; in run()
68 mDragObject.dragView.setColor(0); in run()
103 mDragLayer.animateView(mDragObject.dragView, this, duration, tInterpolator, in run()
171 final DragView dragView = (DragView) mDragLayer.getAnimatedView(); in onAnimationUpdate() local
173 dragView.setTranslationX(time * mUX + mFrom.left + mAX * time * time / 2); in onAnimationUpdate()
174 dragView.setTranslationY(time * mUY + mFrom.top + mAY * time * time / 2); in onAnimationUpdate()
175 dragView.setAlpha(1f - mAlphaInterpolator.getInterpolation(t)); in onAnimationUpdate()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragLayer.java562 public void animateViewIntoPosition(DragView dragView, final int[] pos, float alpha, in animateViewIntoPosition() argument
566 getViewRectRelativeToSelf(dragView, r); in animateViewIntoPosition()
570 animateViewIntoPosition(dragView, fromX, fromY, pos[0], pos[1], alpha, 1, 1, scaleX, scaleY, in animateViewIntoPosition()
574 public void animateViewIntoPosition(DragView dragView, final View child, in animateViewIntoPosition() argument
576 animateViewIntoPosition(dragView, child, -1, onFinishAnimationRunnable, anchorView); in animateViewIntoPosition()
579 public void animateViewIntoPosition(DragView dragView, final View child, int duration, in animateViewIntoPosition() argument
586 getViewRectRelativeToSelf(dragView, r); in animateViewIntoPosition()
606 toScale = scale / dragView.getIntrinsicIconScaleFactor(); in animateViewIntoPosition()
612 toY -= dragView.getMeasuredHeight() * (1 - toScale) / 2; in animateViewIntoPosition()
613 if (dragView.getDragVisualizeOffset() != null) { in animateViewIntoPosition()
[all …]
DDragController.java166 final DragView dragView = mDragObject.dragView = new DragView(mLauncher, b, registrationX, in startDrag() local
178 mDragObject.stateAnnouncer = DragViewStateAnnouncer.createFor(dragView); in startDrag()
189 dragView.setDragVisualizeOffset(new Point(dragOffset)); in startDrag()
192 dragView.setDragRegion(new Rect(dragRegion)); in startDrag()
196 dragView.show(mMotionDownX, mMotionDownY); in startDrag()
209 return dragView; in startDrag()
275 if (mDragObject.dragView != null) { in endDrag()
278 mDragObject.dragView.remove(); in endDrag()
282 mDragObject.dragView = null; in endDrag()
307 mDragObject.dragView.animateTo(mMotionDownX, mMotionDownY, onCompleteRunnable, duration); in animateDragViewToOriginalPosition()
[all …]
DPinItemDragListener.java203 dragObject.dragView.setColor( in onPreDragStart()
210 dragObject.dragView.setColor(0); in onPreDragEnd()
/packages/apps/Launcher3/src/com/android/launcher3/
DCellLayout.java1003 Point dragOffset = dragObject.dragView.getDragVisualizeOffset(); in visualizeDropLocation()
1004 Rect dragRegion = dragObject.dragView.getDragRegion(); in visualizeDropLocation()
1526 int[] direction, View dragView, ItemConfiguration currentState) { in pushViewsToTempLocation() argument
1576 if (!cluster.views.contains(v) && v != dragView) { in pushViewsToTempLocation()
1621 int[] direction, View dragView, ItemConfiguration currentState) { in addViewsToTempLocation() argument
1842 int spanX, int spanY, int[] direction, View dragView, boolean decX, in findReorderSolution() argument
1858 success = rearrangementExists(result[0], result[1], spanX, spanY, direction, dragView, in findReorderSolution()
1866 direction, dragView, false, solution); in findReorderSolution()
1869 direction, dragView, true, solution); in findReorderSolution()
1897 private void copySolutionToTempState(ItemConfiguration solution, View dragView) { in copySolutionToTempState() argument
[all …]
DButtonDropTarget.java115 d.dragView.setColor(mHoverColor); in onDragEnter()
168 d.dragView.setColor(0); in onDragExit()
172 d.dragView.setColor(mHoverColor); in onDragExit()
218 dragLayer.getViewRectRelativeToSelf(d.dragView, from); in onDrop()
232 dragLayer.animateView(d.dragView, from, to, scale, 1f, 1f, 0.1f, 0.1f, in onDrop()
255 int viewWidth = dragObject.dragView.getMeasuredWidth(); in getIconRect()
256 int viewHeight = dragObject.dragView.getMeasuredHeight(); in getIconRect()
DWorkspace.java2431 int[] targetCell, float distance, boolean external, DragView dragView, in createUserFolderIfNecessary() argument
2470 boolean animate = dragView != null; in createUserFolderIfNecessary()
2476 fi.performCreateAnimation(destInfo, v, sourceInfo, dragView, folderLocation, scale, in createUserFolderIfNecessary()
2561 dropTargetLayout, mTargetCell, distance, false, d.dragView, null)) { in onDrop()
2686 if (d.dragView.hasDrawn()) { in onDrop()
2704 animateWidgetDrop(info, parent, d.dragView, in onDrop()
2708 mLauncher.getDragLayer().animateViewIntoPosition(d.dragView, cell, duration, in onDrop()
3339 animateWidgetDrop(info, cellLayout, d.dragView, onAnimationCompleteRunnable,
3373 true, d.dragView, d.postAnimationRunnable)) {
3400 if (d.dragView != null) {
[all …]
DDropTarget.java47 public DragView dragView = null; field in DropTarget.DragObject
92 res[0] = left + dragView.getDragRegion().width() / 2; in getVisualCenter()
93 res[1] = top + dragView.getDragRegion().height() / 2; in getVisualCenter()
/packages/apps/Music/src/com/android/music/
DTouchInterceptor.java326 dragView(x, y); in onTouchEvent()
399 private void dragView(int x, int y) { in dragView() method
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolder.java773 mScrollAreaOffset = d.dragView.getDragRegionWidth() / 2 - d.xOffset; in onDragEnter()
1317 if (d.dragView.hasDrawn()) { in onDrop()
1324 mLauncher.getDragLayer().animateViewIntoPosition(d.dragView, currentDragView, in onDrop()
DFolderIcon.java380 onDrop(item, d.dragView, null, 1.0f, mInfo.contents.size(), d.postAnimationRunnable);
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupContainerWithArrow.java709 d.dragView.remove(); in onDropCompleted()