Searched refs:descendant (Results 1 - 4 of 4) sorted by relevance

/packages/apps/Launcher2/src/com/android/launcher2/
H A DDragLayer.java291 * Determine the rect of the descendant in this DragLayer's coordinates
293 * @param descendant The descendant whose coordinates we want to find.
295 * @return The factor by which this descendant is scaled relative to this DragLayer.
297 public float getDescendantRectRelativeToSelf(View descendant, Rect r) { argument
300 float scale = getDescendantCoordRelativeToSelf(descendant, mTmpXY);
302 mTmpXY[0] + descendant.getWidth(), mTmpXY[1] + descendant.getHeight());
313 * Given a coordinate relative to the descendant, find the coordinate in this DragLayer's
316 * @param descendant Th
322 getDescendantCoordRelativeToSelf(View descendant, int[] coord) argument
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
H A DDragLayer.java489 * Determine the rect of the descendant in this DragLayer's coordinates
491 * @param descendant The descendant whose coordinates we want to find.
493 * @return The factor by which this descendant is scaled relative to this DragLayer.
495 public float getDescendantRectRelativeToSelf(View descendant, Rect r) { argument
498 float scale = getDescendantCoordRelativeToSelf(descendant, mTmpXY);
501 (int) (mTmpXY[0] + scale * descendant.getMeasuredWidth()),
502 (int) (mTmpXY[1] + scale * descendant.getMeasuredHeight()));
512 public float getDescendantCoordRelativeToSelf(View descendant, int[] coord) { argument
513 return getDescendantCoordRelativeToSelf(descendant, coor
528 getDescendantCoordRelativeToSelf(View descendant, int[] coord, boolean includeRootScroll) argument
537 mapCoordInSelfToDescendent(View descendant, int[] coord) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DGLView.java404 * Gets the bounds of the given descendant that relative to this view.
406 public boolean getBoundsOf(GLView descendant, Rect out) { argument
409 GLView view = descendant;
417 out.set(xoffset, yoffset, xoffset + descendant.getWidth(),
418 yoffset + descendant.getHeight());
/packages/apps/Launcher3/src/com/android/launcher3/
H A DUtilities.java366 * Given a coordinate relative to the descendant, find the coordinate in a parent view's
369 * @param descendant The descendant to which the passed coordinate is relative.
372 * @param includeRootScroll Whether or not to account for the scroll of the descendant:
373 * sometimes this is relevant as in a child's coordinates within the descendant.
374 * @return The factor by which this descendant is scaled relative to this DragLayer. Caution
379 View descendant, View ancestor, int[] coord, boolean includeRootScroll) {
382 View v = descendant;
386 if (v != descendant || includeRootScroll) {
407 public static float mapCoordInSelfToDescendent(View descendant, Vie argument
378 getDescendantCoordRelativeToAncestor( View descendant, View ancestor, int[] coord, boolean includeRootScroll) argument
[all...]

Completed in 132 milliseconds