Home | History | Annotate | Download | only in launcher3

Lines Matching defs:to

10  * Unless required by applicable law or agreed to in writing, software
65 // Variables relating to resizing widgets
70 // Variables relating to animation of views after drop
89 // Related to adjacent page hints
99 * Used to create a new DragLayer from XML.
324 // in onInterceptHoverEvent. Return true to consume the event.
367 * @param descendant The descendant whose coordinates we want to find.
368 * @param r The rect into which to place the results.
369 * @return The factor by which this descendant is scaled relative to this DragLayer.
393 * Given a coordinate relative to the descendant, find the coordinate in this DragLayer's
396 * @param descendant The descendant to which the passed coordinate is relative.
398 * @param includeRootScroll Whether or not to account for the scroll of the root descendant:
400 * @return The factor by which this descendant is scaled relative to this DragLayer. Caution
401 * this scale factor is assumed to be equal in X and Y, and so if at any point this
402 * assumption fails, we will need to return a pair of scale factors.
447 // Override to allow type-checking of LayoutParams.
585 // Since the child hasn't necessarily been laid out, we force the lp to be updated with
586 // the correct coordinates (above) and use these to determine the final location
588 // We need to account for the scale of the child itself, as the above only accounts for
596 // Account for the source scale of the icon (ie. from AllApps to Workspace, in which
600 // The child may be scaled (always about the center of the view) so to account for it,
601 // we have to offset the position by the scaled size. Once we do that, we can center
644 Rect to = new Rect(toX, toY, toX + view.getMeasuredWidth(), toY + view.getMeasuredHeight());
645 animateView(view, from, to, finalAlpha, initScaleX, initScaleY, finalScaleX, finalScaleY, duration,
652 * @param view The view to be animated. This view is drawn directly into DragLayer, and so
653 * doesn't need to be a child of DragLayer.
655 * @param to The final location of the view. Only the left and top parameters are used. This
658 * @param finalAlpha The final alpha of the view, in case we want it to fade as it animates.
661 * @param motionInterpolator The interpolator to use for the location of the view.
662 * @param alphaInterpolator The interpolator to use for the alpha of the view.
663 * @param onCompleteRunnable Optional runnable to run on animation completion.
664 * @param fadeOut Whether or not to fade out the view once the animation completes. If true,
667 * anchored to in case scrolling is currently taking place. Note: currently this is
670 public void animateView(final DragView view, final Rect from, final Rect to,
677 final float dist = (float) Math.hypot(to.left - from.left, to.top - from.top);
681 // If duration < 0, this is a cue to compute the duration based on the distance
690 // Fall back to cubic ease out interpolator for the animation if none is specified
720 int x = (int) (fromLeft + Math.round(((to.left - fromLeft) * motionPercent)));
721 int y = (int) (fromTop + Math.round(((to.top - fromTop) * motionPercent)));
837 // Pre-18, the child was not added / removed by the time of those callbacks. We need to
838 // force update our representation of things here to avoid crashing on pre-18 devices
853 // for indexes greater than the top index, we fetch one item above to shift for the
921 // We want to draw the page hints above the workspace, but below the drag view.