Lines Matching defs:from
141 // If we are dragging a widget from AppsCustomize, hide the delete target
146 // If we are dragging an application from AppsCustomize, only show the control if we can
156 // let them uninstall from here either.
206 Rect from = new Rect();
207 dragLayer.getViewRectRelativeToSelf(d.dragView, from);
210 float scale = (float) to.width() / from.width();
221 dragLayer.animateView(d.dragView, from, to, scale, 1f, 1f, 0.1f, 0.1f,
231 // Uninstall the application if it is being dragged from AppsCustomize
236 // Remove the folder from the workspace and delete the contents from launcher model
241 // Remove the widget from the workspace
264 * Creates an animation from the current drag view to the delete trash icon.
270 final Rect from = new Rect();
271 dragLayer.getViewRectRelativeToSelf(d.dragView, from);
277 int offsetY = (int) (-from.top * vp);
279 final float y2 = from.top + offsetY; // intermediate t/l
280 final float x2 = from.left + offsetX;
281 final float x1 = from.left; // drag view t/l
282 final float y1 = from.top;
318 * Creates an animation from the current drag view along its current velocity vector.
332 public FlingAlongVectorAnimatorUpdateListener(DragLayer dragLayer, PointF vel, Rect from,
336 mFrom = from;
372 final Rect from = new Rect();
373 dragLayer.getViewRectRelativeToSelf(d.dragView, from);
375 return new FlingAlongVectorAnimatorUpdateListener(dragLayer, vel, from, startTime,
385 // Don't highlight the target if we are flinging from AllApps
432 // If we are dragging from AllApps, then we allow AppsCustomizePagedView to clean up