Searched defs:dragView (Results 1 - 12 of 12) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/
H A DDropTarget.java47 public DragView dragView = null; field in class:DropTarget.DragObject
76 * This is used to compute the visual center of the dragView. This point is then
86 // top, as the dragRect is in that case taken to be the entire dragView.
92 res[0] = left + dragView.getDragRegion().width() / 2;
93 res[1] = top + dragView.getDragRegion().height() / 2;
H A DCellLayout.java1003 Point dragOffset = dragObject.dragView.getDragVisualizeOffset();
1004 Rect dragRegion = dragObject.dragView.getDragRegion();
1526 int[] direction, View dragView, ItemConfiguration currentState) {
1576 if (!cluster.views.contains(v) && v != dragView) {
1621 int[] direction, View dragView, ItemConfiguration currentState) {
1842 int spanX, int spanY, int[] direction, View dragView, boolean decX,
1858 success = rearrangementExists(result[0], result[1], spanX, spanY, direction, dragView,
1866 direction, dragView, false, solution);
1869 direction, dragView, true, solution);
1897 private void copySolutionToTempState(ItemConfiguration solution, View dragView) { argument
1525 pushViewsToTempLocation(ArrayList<View> views, Rect rectOccupiedByPotentialDrop, int[] direction, View dragView, ItemConfiguration currentState) argument
1620 addViewsToTempLocation(ArrayList<View> views, Rect rectOccupiedByPotentialDrop, int[] direction, View dragView, ItemConfiguration currentState) argument
1841 findReorderSolution(int pixelX, int pixelY, int minSpanX, int minSpanY, int spanX, int spanY, int[] direction, View dragView, boolean decX, ItemConfiguration solution) argument
1917 animateItemsToSolution(ItemConfiguration solution, View dragView, boolean commitDragView) argument
1941 beginOrAdjustReorderPreviewAnimations(ItemConfiguration solution, View dragView, int delay, int mode) argument
2163 findConfigurationNoShuffle(int pixelX, int pixelY, int minSpanX, int minSpanY, int spanX, int spanY, View dragView, ItemConfiguration solution) argument
2190 getDirectionVectorForDrop(int dragViewCenterX, int dragViewCenterY, int spanX, int spanY, View dragView, int[] resultDirection) argument
2229 getViewsIntersectingRegion(int cellX, int cellY, int spanX, int spanY, View dragView, Rect boundingRect, ArrayList<View> intersectingViews) argument
2252 isNearestDropLocationOccupied(int pixelX, int pixelY, int spanX, int spanY, View dragView, int[] result) argument
2278 createAreaForResize(int cellX, int cellY, int spanX, int spanY, View dragView, int[] direction, boolean commit) argument
2309 performReorder(int pixelX, int pixelY, int minSpanX, int minSpanY, int spanX, int spanY, View dragView, int[] result, int resultSpan[], int mode) argument
[all...]
H A DWorkspace.java2431 int[] targetCell, float distance, boolean external, DragView dragView,
2469 // If the dragView is null, we can't animate
2470 boolean animate = dragView != null;
2476 fi.performCreateAnimation(destInfo, v, sourceInfo, dragView, folderLocation, scale,
2561 dropTargetLayout, mTargetCell, distance, false, d.dragView, null)) {
2686 if (d.dragView.hasDrawn()) {
2704 animateWidgetDrop(info, parent, d.dragView,
2708 mLauncher.getDragLayer().animateViewIntoPosition(d.dragView, cell, duration,
3339 animateWidgetDrop(info, cellLayout, d.dragView, onAnimationCompleteRunnable,
3373 true, d.dragView,
2430 createUserFolderIfNecessary(View newView, long container, CellLayout target, int[] targetCell, float distance, boolean external, DragView dragView, Runnable postAnimationRunnable) argument
3431 getFinalPositionForDropAnimation(int[] loc, float[] scaleXY, DragView dragView, CellLayout layout, ItemInfo info, int[] targetCell, boolean scale) argument
3479 animateWidgetDrop(ItemInfo info, CellLayout cellLayout, final DragView dragView, final Runnable onCompleteRunnable, int animationType, final View finalView, boolean external) argument
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DDropTarget.java49 public DragView dragView = null; field in class:DropTarget.DragObject
124 * @param dragView The DragView that's being dragged around on screen.
155 * @param dragView The DragView that's being dragged around on screen.
173 * @param dragView The DragView that's being dragged around on screen.
H A DDragController.java246 final DragView dragView = mDragObject.dragView = new DragView(mLauncher, b, registrationX,
250 dragView.setDragVisualizeOffset(new Point(dragOffset));
253 dragView.setDragRegion(new Rect(dragRegion));
256 dragView.show(mMotionDownX, mMotionDownY);
358 if (mDragObject.dragView != null) {
361 mDragObject.dragView.remove();
363 mDragObject.dragView = null;
380 void onDeferredEndDrag(DragView dragView) { argument
381 dragView
[all...]
H A DDragLayer.java454 public void animateViewIntoPosition(DragView dragView, final View child) { argument
455 animateViewIntoPosition(dragView, child, null);
458 public void animateViewIntoPosition(DragView dragView, final int[] pos, float alpha, argument
462 getViewRectRelativeToSelf(dragView, r);
466 animateViewIntoPosition(dragView, fromX, fromY, pos[0], pos[1], alpha, 1, 1, scaleX, scaleY,
470 public void animateViewIntoPosition(DragView dragView, final View child, argument
472 animateViewIntoPosition(dragView, child, -1, onFinishAnimationRunnable, null);
475 public void animateViewIntoPosition(DragView dragView, final View child, int duration, argument
482 getViewRectRelativeToSelf(dragView, r);
504 toY -= dragView
[all...]
H A DFolder.java623 float[] r = getDragViewVisualCenter(d.x, d.y, d.xOffset, d.yOffset, d.dragView, null);
639 // This is used to compute the visual center of the dragView. The idea is that
643 DragView dragView, float[] recycle) {
653 // top, as the dragRect is in that case taken to be the entire dragView.
659 res[0] = left + dragView.getDragRegion().width() / 2;
660 res[1] = top + dragView.getDragRegion().height() / 2;
1016 if (d.dragView.hasDrawn()) {
1017 mLauncher.getDragLayer().animateViewIntoPosition(d.dragView, mCurrentDragView);
642 getDragViewVisualCenter(int x, int y, int xOffset, int yOffset, DragView dragView, float[] recycle) argument
H A DCellLayout.java1824 int[] direction, View dragView, ItemConfiguration currentState) {
1874 if (!cluster.views.contains(v) && v != dragView) {
1919 int[] direction, View dragView, ItemConfiguration currentState) {
2156 int spanY, int[] direction, View dragView, boolean decX, ItemConfiguration solution) {
2171 success = rearrangementExists(result[0], result[1], spanX, spanY, direction, dragView,
2179 dragView, false, solution);
2182 dragView, true, solution);
2210 private void copySolutionToTempState(ItemConfiguration solution, View dragView) { argument
2220 if (child == dragView) continue;
2235 private void animateItemsToSolution(ItemConfiguration solution, View dragView, boolea argument
1823 pushViewsToTempLocation(ArrayList<View> views, Rect rectOccupiedByPotentialDrop, int[] direction, View dragView, ItemConfiguration currentState) argument
1918 addViewsToTempLocation(ArrayList<View> views, Rect rectOccupiedByPotentialDrop, int[] direction, View dragView, ItemConfiguration currentState) argument
2155 simpleSwap(int pixelX, int pixelY, int minSpanX, int minSpanY, int spanX, int spanY, int[] direction, View dragView, boolean decX, ItemConfiguration solution) argument
2263 beginOrAdjustHintAnimations(ItemConfiguration solution, View dragView, int delay) argument
2435 findConfigurationNoShuffle(int pixelX, int pixelY, int minSpanX, int minSpanY, int spanX, int spanY, View dragView, ItemConfiguration solution) argument
2466 getDirectionVectorForDrop(int dragViewCenterX, int dragViewCenterY, int spanX, int spanY, View dragView, int[] resultDirection) argument
2505 getViewsIntersectingRegion(int cellX, int cellY, int spanX, int spanY, View dragView, Rect boundingRect, ArrayList<View> intersectingViews) argument
2528 isNearestDropLocationOccupied(int pixelX, int pixelY, int spanX, int spanY, View dragView, int[] result) argument
2553 createAreaForResize(int cellX, int cellY, int spanX, int spanY, View dragView, int[] direction, boolean commit) argument
2584 createArea(int pixelX, int pixelY, int minSpanX, int minSpanY, int spanX, int spanY, View dragView, int[] result, int resultSpan[], int mode) argument
[all...]
H A DWorkspace.java1976 d.dragView, mDragViewVisualCenter);
2095 int[] targetCell, float distance, boolean external, DragView dragView,
2133 // If the dragView is null, we can't animate
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, cel
2094 createUserFolderIfNecessary(View newView, long container, CellLayout target, int[] targetCell, float distance, boolean external, DragView dragView, Runnable postAnimationRunnable) argument
2629 overlaps(CellLayout cl, DragView dragView, int dragViewX, int dragViewY, Matrix cachedInverseMatrix) argument
2672 findMatchingPageForDragOver( DragView dragView, float originX, float originY, boolean exact) argument
2721 getDragViewVisualCenter(int x, int y, int xOffset, int yOffset, DragView dragView, float[] recycle) argument
2939 DragView dragView; field in class:Workspace.ReorderAlarmListener
2942 ReorderAlarmListener(float[] dragViewCenter, int minSpanX, int minSpanY, int spanX, int spanY, DragView dragView, View child) argument
3203 getFinalPositionForDropAnimation(int[] loc, float[] scaleXY, DragView dragView, CellLayout layout, ItemInfo info, int[] targetCell, boolean external, boolean scale) argument
3239 animateWidgetDrop(ItemInfo info, CellLayout cellLayout, DragView dragView, final Runnable onCompleteRunnable, int animationType, final View finalView, boolean external) argument
[all...]
/packages/apps/Music/src/com/android/music/
H A DTouchInterceptor.java326 dragView(x, y);
399 private void dragView(int x, int y) { method in class:TouchInterceptor
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
H A DDragController.java166 final DragView dragView = mDragObject.dragView = new DragView(mLauncher, b, registrationX,
178 mDragObject.stateAnnouncer = DragViewStateAnnouncer.createFor(dragView);
189 dragView.setDragVisualizeOffset(new Point(dragOffset));
192 dragView.setDragRegion(new Rect(dragRegion));
196 dragView.show(mMotionDownX, mMotionDownY);
209 return dragView;
275 if (mDragObject.dragView != null) {
278 mDragObject.dragView.remove();
282 mDragObject.dragView
324 onDeferredEndDrag(DragView dragView) argument
[all...]
H A DDragLayer.java562 public void animateViewIntoPosition(DragView dragView, final int[] pos, float alpha, argument
566 getViewRectRelativeToSelf(dragView, r);
570 animateViewIntoPosition(dragView, fromX, fromY, pos[0], pos[1], alpha, 1, 1, scaleX, scaleY,
574 public void animateViewIntoPosition(DragView dragView, final View child, argument
576 animateViewIntoPosition(dragView, child, -1, onFinishAnimationRunnable, anchorView);
579 public void animateViewIntoPosition(DragView dragView, final View child, int duration, argument
586 getViewRectRelativeToSelf(dragView, r);
606 toScale = scale / dragView.getIntrinsicIconScaleFactor();
612 toY -= dragView.getMeasuredHeight() * (1 - toScale) / 2;
613 if (dragView
[all...]

Completed in 251 milliseconds