Home | History | Annotate | Download | only in launcher2

Lines Matching defs:to

10  * Unless required by applicable law or agreed to in writing, software
57 // Variables relating to resizing widgets
62 // Variables relating to animation of views after drop
79 * Used to create a new DragLayer from XML.
253 // in onInterceptHoverEvent. Return true to consume the event.
293 * @param descendant The descendant whose coordinates we want to find.
294 * @param r The rect into which to place the results.
295 * @return The factor by which this descendant is scaled relative to this DragLayer.
313 * Given a coordinate relative to the descendant, find the coordinate in this DragLayer's
316 * @param descendant The descendant to which the passed coordinate is relative.
318 * @return The factor by which this descendant is scaled relative to this DragLayer. Caution
319 * this scale factor is assumed to be equal in X and Y, and so if at any point this
320 * assumption fails, we will need to return a pair of scale factors.
489 // Since the child hasn't necessarily been laid out, we force the lp to be updated with
490 // the correct coordinates (above) and use these to determine the final location
492 // We need to account for the scale of the child itself, as the above only accounts for
500 // The child may be scaled (always about the center of the view) so to account for it,
501 // we have to offset the position by the scaled size. Once we do that, we can center
539 Rect to = new Rect(toX, toY, toX + view.getMeasuredWidth(), toY + view.getMeasuredHeight());
540 animateView(view, from, to, finalAlpha, initScaleX, initScaleY, finalScaleX, finalScaleY, duration,
547 * @param view The view to be animated. This view is drawn directly into DragLayer, and so
548 * doesn't need to be a child of DragLayer.
550 * @param to The final location of the view. Only the left and top parameters are used. This
553 * @param finalAlpha The final alpha of the view, in case we want it to fade as it animates.
556 * @param motionInterpolator The interpolator to use for the location of the view.
557 * @param alphaInterpolator The interpolator to use for the alpha of the view.
558 * @param onCompleteRunnable Optional runnable to run on animation completion.
559 * @param fadeOut Whether or not to fade out the view once the animation completes. If true,
562 * anchored to in case scrolling is currently taking place. Note: currently this is
565 public void animateView(final DragView view, final Rect from, final Rect to,
572 final float dist = (float) Math.sqrt(Math.pow(to.left - from.left, 2) +
573 Math.pow(to.top - from.top, 2));
577 // If duration < 0, this is a cue to compute the duration based on the distance
586 // Fall back to cubic ease out interpolator for the animation if none is specified
616 int x = (int) (fromLeft + Math.round(((to.left - fromLeft) * motionPercent)));
617 int y = (int) (fromTop + Math.round(((to.top - fromTop) * motionPercent)));
738 // dispatch order. We need to sort that issue out and then decide how to go about this.
747 // case we want the workspace to stay behind these elements.