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

/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/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/
H A DUtilities.java152 * Given a coordinate relative to the descendant, find the coordinate in a parent view's
155 * @param descendant The descendant to which the passed coordinate is relative.
158 * @param includeRootScroll Whether or not to account for the scroll of the descendant:
159 * sometimes this is relevant as in a child's coordinates within the descendant.
160 * @return The factor by which this descendant is scaled relative to this DragLayer. Caution
165 View descendant, View ancestor, int[] coord, boolean includeRootScroll) {
170 View v = descendant;
174 if (v != descendant || includeRootScroll) {
195 public static void mapCoordInSelfToDescendant(View descendant, Vie argument
164 getDescendantCoordRelativeToAncestor( View descendant, View ancestor, int[] coord, boolean includeRootScroll) argument
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
H A DDragLayer.java379 * Determine the rect of the descendant in this DragLayer's coordinates
381 * @param descendant The descendant whose coordinates we want to find.
383 * @return The factor by which this descendant is scaled relative to this DragLayer.
385 public float getDescendantRectRelativeToSelf(View descendant, Rect r) { argument
388 float scale = getDescendantCoordRelativeToSelf(descendant, mTmpXY);
391 (int) (mTmpXY[0] + scale * descendant.getMeasuredWidth()),
392 (int) (mTmpXY[1] + scale * descendant.getMeasuredHeight()));
402 public float getDescendantCoordRelativeToSelf(View descendant, int[] coord) { argument
403 return getDescendantCoordRelativeToSelf(descendant, coor
418 getDescendantCoordRelativeToSelf(View descendant, int[] coord, boolean includeRootScroll) argument
427 mapCoordInSelfToDescendant(View descendant, int[] coord) argument
[all...]

Completed in 115 milliseconds