Home
last modified time | relevance | path

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

/aosp12/packages/apps/Launcher3/src/com/android/launcher3/util/
H A DFlingAnimation.java60 mDragObject.dragView.cancelAnimation(); in run()
61 mDragObject.dragView.requestLayout(); in run()
65 mDragLayer.getViewRectRelativeToSelf(mDragObject.dragView, from); in run()
69 ((1 - mDragObject.dragView.getScaleX()) * from.width()) / 2f, in run()
70 ((1 - mDragObject.dragView.getScaleY()) * from.height()) / 2f); in run()
108 mDragLayer.playDropAnimation(mDragObject.dragView, anim, DragLayer.ANIMATION_END_DISAPPEAR); in run()
175 final DragView dragView = (DragView) mDragLayer.getAnimatedView(); in onAnimationUpdate() local
177 dragView.setTranslationX(time * mUX + mFrom.left + mAX * time * time / 2); in onAnimationUpdate()
178 dragView.setTranslationY(time * mUY + mFrom.top + mAY * time * time / 2); in onAnimationUpdate()
179 dragView.setAlpha(1f - mAlphaInterpolator.getInterpolation(t)); in onAnimationUpdate()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
H A DLauncherDragController.java103 final DragView dragView = mDragObject.dragView = drawable != null in startDrag() local
122 dragView.setItemInfo(dragInfo); in startDrag()
130 mDragObject.stateAnnouncer = DragViewStateAnnouncer.createFor(dragView); in startDrag()
138 dragView.setDragVisualizeOffset(new Point(dragOffset)); in startDrag()
141 dragView.setDragRegion(new Rect(dragRegion)); in startDrag()
145 dragView.show(mLastTouch.x, mLastTouch.y); in startDrag()
160 return dragView; in startDrag()
H A DDragLayer.java224 public void animateViewIntoPosition(DragView dragView, final int[] pos, float alpha, in animateViewIntoPosition() argument
227 animateViewIntoPosition(dragView, pos[0], pos[1], alpha, scaleX, scaleY, in animateViewIntoPosition()
231 public void animateViewIntoPosition(DragView dragView, final View child, View anchorView) { in animateViewIntoPosition() argument
232 animateViewIntoPosition(dragView, child, -1, anchorView); in animateViewIntoPosition()
235 public void animateViewIntoPosition(DragView dragView, final View child, int duration, in animateViewIntoPosition() argument
272 / (dragView.getMeasuredWidth() - dragView.getBlurSizeOutline())); in animateViewIntoPosition()
276 float scaleShiftX = dragView.getMeasuredWidth() * (1 - toScale) / 2; in animateViewIntoPosition()
277 float scaleShiftY = dragView.getMeasuredHeight() * (1 - toScale) / 2; in animateViewIntoPosition()
279 … toX += scale * destRect.left - toScale * dragView.getBlurSizeOutline() / 2 - scaleShiftX; in animateViewIntoPosition()
280 toY += scale * destRect.top - toScale * dragView.getBlurSizeOutline() / 2 - scaleShiftY; in animateViewIntoPosition()
[all …]
H A DDragController.java218 mDragObject.dragView.onDragStart(); in callOnDragStart()
295 if (mDragObject.dragView != null) { in endDrag()
298 mDragObject.dragView.remove(); in endDrag()
302 mDragObject.dragView = null; in endDrag()
325 mDragObject.dragView.animateTo(mMotionDown.x, mMotionDown.y, onCompleteRunnable, duration); in animateDragViewToOriginalPosition()
342 void onDeferredEndDrag(DragView dragView) { in onDeferredEndDrag() argument
343 dragView.remove(); in onDeferredEndDrag()
438 mDragObject.dragView.move(x, y); in handleMoveEvent()
H A DBaseItemDragListener.java145 dragObject.dragView.setAlpha(.5f); in onPreDragStart()
151 dragObject.dragView.setAlpha(1f); in onPreDragEnd()
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
H A DTaskbarDragController.java136 mDragView = dragObject.dragView; in startInternalDrag()
190 final DragView dragView = mDragObject.dragView = new TaskbarDragView( in startDrag() local
198 dragView.setItemInfo(dragInfo); in startDrag()
206 mDragObject.stateAnnouncer = DragViewStateAnnouncer.createFor(dragView); in startDrag()
214 dragView.setDragRegion(new Rect(dragRegion)); in startDrag()
217 dragView.show(mLastTouch.x, mLastTouch.y); in startDrag()
228 return dragView; in startDrag()
247 int offsetX = (mDragIconSize - mDragObject.dragView.getDragRegionWidth()) / 2; in startSystemDrag()
255 float scale = mDragObject.dragView.getScaleX(); in startSystemDrag()
257 mDragObject.dragView.draw(canvas); in startSystemDrag()
[all …]
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/
H A DButtonDropTarget.java151 d.dragView.setAlpha(DRAG_VIEW_HOVER_OVER_OPACITY); in onDragEnter()
169 d.dragView.setAlpha(1f); in onDragExit()
172 d.dragView.setAlpha(DRAG_VIEW_HOVER_OVER_OPACITY); in onDragExit()
217 final DragView dragView = d.dragView; in onDrop() local
219 final float scale = (float) to.width() / dragView.getMeasuredWidth(); in onDrop()
220 dragView.detachContentView(/* reattachToPreviousParent= */ true); in onDrop()
229 dragLayer.animateView(d.dragView, to, scale, 0.1f, 0.1f, in onDrop()
255 int viewWidth = dragObject.dragView.getMeasuredWidth(); in getIconRect()
256 int viewHeight = dragObject.dragView.getMeasuredHeight(); in getIconRect()
H A DCellLayout.java1160 View view = dragObject.dragView.getContentView(); in applyColorExtractionOnWidget()
2007 if (child == dragView) continue; in copySolutionToTempState()
2030 if (child == dragView) continue; in animateItemsToSolution()
2046 View dragView, int mode) { in beginOrAdjustReorderPreviewAnimations() argument
2050 if (child == dragView) continue; in beginOrAdjustReorderPreviewAnimations()
2233 private void commitTempPlacement(View dragView) { in commitTempPlacement() argument
2251 if (info != null && child != dragView) { in commitTempPlacement()
2356 if (child == dragView) continue; in getViewsIntersectingRegion()
2369 View dragView, int[] result) { in isNearestDropLocationOccupied() argument
2408 copySolutionToTempState(swapSolution, dragView); in createAreaForResize()
[all …]
H A DDropTarget.java56 public DragView dragView = null; field in DropTarget.DragObject
100 Rect dragRegion = dragView.getDragRegion(); in getVisualCenter()
H A DWorkspace.java440 ? dragObject.dragView.getContentViewParent().getParent() in onDragStart()
2115 if (d.dragView.hasDrawn()) { in onDrop()
2803 if (d.dragView != null) { in onDropExternal()
2867 float dragScale = dragView.getInitialScale() * cellLayoutScale; in getFinalPositionForDropAnimation()
2868 loc[0] += (dragScale - 1) * dragView.getWidth() / 2; in getFinalPositionForDropAnimation()
2869 loc[1] += (dragScale - 1) * dragView.getHeight() / 2; in getFinalPositionForDropAnimation()
2873 Rect dragRegion = dragView.getDragRegion(); in getFinalPositionForDropAnimation()
2897 && dragView.getContentView() != finalView) { in animateWidgetDrop()
2899 dragView.crossFadeContent(crossFadeDrawable, (int) (duration * 0.8f)); in animateWidgetDrop()
2927 dragLayer.animateViewIntoPosition(dragView, finalPos[0], in animateWidgetDrop()
[all …]
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/widget/dragndrop/
H A DAppWidgetHostViewDragListener.java35 if (dragObject.dragView.getContentView() instanceof LauncherAppWidgetHostView) { in onDragStart()
36 mAppWidgetHostView = (LauncherAppWidgetHostView) dragObject.dragView.getContentView(); in onDragStart()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/folder/
H A DFolderIcon.java307 final DragView srcView = d.dragView; in performCreateAnimation()
335 DragView animateView = d.dragView; in onDrop()
H A DFolder.java883 mScrollAreaOffset = d.dragView.getDragRegionWidth() / 2 - d.xOffset; in onDragEnter()
1307 if (d.dragView.hasDrawn()) { in onDrop()
1314 launcher.getDragLayer().animateViewIntoPosition(d.dragView, currentDragView, null); in onDrop()