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

/packages/apps/Launcher3/src/com/android/launcher3/views/
H A DBaseDragLayer.java170 * Determine the rect of the descendant in this DragLayer's coordinates
172 * @param descendant The descendant whose coordinates we want to find.
174 * @return The factor by which this descendant is scaled relative to this DragLayer.
176 public float getDescendantRectRelativeToSelf(View descendant, Rect r) { argument
179 float scale = getDescendantCoordRelativeToSelf(descendant, mTmpXY);
182 (int) (mTmpXY[0] + scale * descendant.getMeasuredWidth()),
183 (int) (mTmpXY[1] + scale * descendant.getMeasuredHeight()));
193 public float getDescendantCoordRelativeToSelf(View descendant, int[] coord) { argument
194 return getDescendantCoordRelativeToSelf(descendant, coor
209 getDescendantCoordRelativeToSelf(View descendant, int[] coord, boolean includeRootScroll) argument
218 mapCoordInSelfToDescendant(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/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.java138 * Given a coordinate relative to the descendant, find the coordinate in a parent view's
141 * @param descendant The descendant to which the passed coordinate is relative.
144 * @param includeRootScroll Whether or not to account for the scroll of the descendant:
145 * sometimes this is relevant as in a child's coordinates within the descendant.
146 * @return The factor by which this descendant is scaled relative to this DragLayer. Caution
151 View descendant, View ancestor, int[] coord, boolean includeRootScroll) {
156 View v = descendant;
160 if (v != descendant || includeRootScroll) {
181 public static void mapCoordInSelfToDescendant(View descendant, Vie argument
150 getDescendantCoordRelativeToAncestor( View descendant, View ancestor, int[] coord, boolean includeRootScroll) argument
[all...]

Completed in 228 milliseconds