/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | DeleteDropTarget.java | 200 d.dragView.setColor(mHoverColor); 207 dragLayer.getViewRectRelativeToSelf(d.dragView, from); 208 Rect to = getIconRect(d.dragView.getMeasuredWidth(), d.dragView.getMeasuredHeight(), 221 dragLayer.animateView(d.dragView, from, to, scale, 1f, 1f, 0.1f, 0.1f, 268 final Rect to = getIconRect(d.dragView.getMeasuredWidth(), d.dragView.getMeasuredHeight(), 271 dragLayer.getViewRectRelativeToSelf(d.dragView, from); 295 final DragView dragView = (DragView) dragLayer.getAnimatedView(); 298 float initialScale = dragView [all...] |
H A D | DragController.java | 246 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 D | DragLayer.java | 454 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 D | DropTarget.java | 49 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 D | ButtonDropTarget.java | 91 d.dragView.setColor(mHoverColor); 99 d.dragView.setColor(0);
|
H A D | Workspace.java | 1976 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...] |
H A D | CellLayout.java | 1824 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 D | Folder.java | 623 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 D | FolderIcon.java | 335 // This will animate the dragView (srcView) into the new folder 427 onDrop(item, d.dragView, null, 1.0f, mInfo.contents.size(), d.postAnimationRunnable, d);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | DropTarget.java | 48 public DragView dragView = null; field in class:DropTarget.DragObject 74 * This is used to compute the visual center of the dragView. This point is then 84 // top, as the dragRect is in that case taken to be the entire dragView. 90 res[0] = left + dragView.getDragRegion().width() / 2; 91 res[1] = top + dragView.getDragRegion().height() / 2;
|
H A D | ButtonDropTarget.java | 165 d.dragView.setColor(mHoverColor); 218 d.dragView.setColor(0); 222 d.dragView.setColor(mHoverColor); 269 dragLayer.getViewRectRelativeToSelf(d.dragView, from); 281 dragLayer.animateView(d.dragView, from, to, scale, 1f, 1f, 0.1f, 0.1f, 307 int viewWidth = dragObject.dragView.getMeasuredWidth(); 308 int viewHeight = dragObject.dragView.getMeasuredHeight();
|
H A D | CellLayout.java | 929 Point dragOffset = dragObject.dragView.getDragVisualizeOffset(); 930 Rect dragRegion = dragObject.dragView.getDragRegion(); 1453 int[] direction, View dragView, ItemConfiguration currentState) { 1503 if (!cluster.views.contains(v) && v != dragView) { 1548 int[] direction, View dragView, ItemConfiguration currentState) { 1769 int spanX, int spanY, int[] direction, View dragView, boolean decX, 1785 success = rearrangementExists(result[0], result[1], spanX, spanY, direction, dragView, 1793 direction, dragView, false, solution); 1796 direction, dragView, true, solution); 1824 private void copySolutionToTempState(ItemConfiguration solution, View dragView) { argument 1452 pushViewsToTempLocation(ArrayList<View> views, Rect rectOccupiedByPotentialDrop, int[] direction, View dragView, ItemConfiguration currentState) argument 1547 addViewsToTempLocation(ArrayList<View> views, Rect rectOccupiedByPotentialDrop, int[] direction, View dragView, ItemConfiguration currentState) argument 1768 findReorderSolution(int pixelX, int pixelY, int minSpanX, int minSpanY, int spanX, int spanY, int[] direction, View dragView, boolean decX, ItemConfiguration solution) argument 1844 animateItemsToSolution(ItemConfiguration solution, View dragView, boolean commitDragView) argument 1868 beginOrAdjustReorderPreviewAnimations(ItemConfiguration solution, View dragView, int delay, int mode) argument 2090 findConfigurationNoShuffle(int pixelX, int pixelY, int minSpanX, int minSpanY, int spanX, int spanY, View dragView, ItemConfiguration solution) argument 2117 getDirectionVectorForDrop(int dragViewCenterX, int dragViewCenterY, int spanX, int spanY, View dragView, int[] resultDirection) argument 2156 getViewsIntersectingRegion(int cellX, int cellY, int spanX, int spanY, View dragView, Rect boundingRect, ArrayList<View> intersectingViews) argument 2179 isNearestDropLocationOccupied(int pixelX, int pixelY, int spanX, int spanY, View dragView, int[] result) argument 2205 createAreaForResize(int cellX, int cellY, int spanX, int spanY, View dragView, int[] direction, boolean commit) argument 2236 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 D | Workspace.java | 370 if (dragObject.dragView != null) { 371 Bitmap preview = dragObject.dragView.getPreviewBitmap(); 1740 int[] targetCell, float distance, boolean external, DragView dragView) { 1777 // If the dragView is null, we can't animate 1778 boolean animate = dragView != null; 1784 fi.performCreateAnimation(destInfo, v, sourceInfo, dragView, folderLocation, scale 1870 dropTargetLayout, mTargetCell, distance, false, d.dragView) || 1982 if (d.dragView.hasDrawn()) { 1999 animateWidgetDrop(info, parent, d.dragView, null, animationType, cell, false); 2002 mLauncher.getDragLayer().animateViewIntoPosition(d.dragView, cel 1739 createUserFolderIfNecessary(View newView, long container, CellLayout target, int[] targetCell, float distance, boolean external, DragView dragView) argument 2710 getFinalPositionForDropAnimation(int[] loc, float[] scaleXY, DragView dragView, CellLayout layout, ItemInfo info, int[] targetCell, boolean scale) argument 2758 animateWidgetDrop(ItemInfo info, CellLayout cellLayout, final DragView dragView, final Runnable onCompleteRunnable, int animationType, final View finalView, boolean external) argument [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
H A D | FlingAnimation.java | 57 mDragLayer.getViewRectRelativeToSelf(mDragObject.dragView, mFrom); 58 float scale = mDragObject.dragView.getScaleX(); 59 float xOffset = ((scale - 1f) * mDragObject.dragView.getMeasuredWidth()) / 2f; 60 float yOffset = ((scale - 1f) * mDragObject.dragView.getMeasuredHeight()) / 2f; 70 mDragObject.dragView.setColor(0); 105 mDragLayer.animateView(mDragObject.dragView, this, duration, tInterpolator, 173 final DragView dragView = (DragView) mDragLayer.getAnimatedView(); 175 dragView.setTranslationX(time * mUX + mFrom.left + mAX * time * time / 2); 176 dragView.setTranslationY(time * mUY + mFrom.top + mAY * time * time / 2); 177 dragView [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
H A D | DragLayer.java | 249 public void animateViewIntoPosition(DragView dragView, final int[] pos, float alpha, argument 253 getViewRectRelativeToSelf(dragView, r); 257 animateViewIntoPosition(dragView, fromX, fromY, pos[0], pos[1], alpha, 1, 1, scaleX, scaleY, 261 public void animateViewIntoPosition(DragView dragView, final View child, View anchorView) { argument 262 animateViewIntoPosition(dragView, child, -1, anchorView); 265 public void animateViewIntoPosition(DragView dragView, final View child, int duration, argument 272 getViewRectRelativeToSelf(dragView, r); 292 toScale = scale / dragView.getIntrinsicIconScaleFactor(); 298 toY -= dragView.getMeasuredHeight() * (1 - toScale) / 2; 299 if (dragView [all...] |
H A D | DragController.java | 171 final DragView dragView = mDragObject.dragView = new DragView(mLauncher, b, registrationX, 173 dragView.setItemInfo(dragInfo); 183 mDragObject.stateAnnouncer = DragViewStateAnnouncer.createFor(dragView); 194 dragView.setDragVisualizeOffset(new Point(dragOffset)); 197 dragView.setDragRegion(new Rect(dragRegion)); 201 dragView.show(mMotionDownX, mMotionDownY); 214 return dragView; 291 if (mDragObject.dragView != null) { 294 mDragObject.dragView 340 onDeferredEndDrag(DragView dragView) argument [all...] |
H A D | BaseItemDragListener.java | 143 // dragView from being visible. Instead just skip the fade-in animation here. 146 dragObject.dragView.setColor( 153 dragObject.dragView.setColor(0);
|
/packages/apps/Music/src/com/android/music/ |
H A D | TouchInterceptor.java | 326 dragView(x, y); 399 private void dragView(int x, int y) { method in class:TouchInterceptor
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
H A D | Folder.java | 688 mScrollAreaOffset = d.dragView.getDragRegionWidth() / 2 - d.xOffset; 1183 if (d.dragView.hasDrawn()) { 1190 mLauncher.getDragLayer().animateViewIntoPosition(d.dragView, currentDragView, null);
|
H A D | FolderIcon.java | 264 // This will animate the dragView (srcView) into the new folder 383 onDrop(item, d.dragView, null, 1.0f, mInfo.contents.size(),
|