Lines Matching defs:descendant

514      * Gets the descendant focusability of this view group.  The descendant
532 * Set the descendant focusability of this view group. This defines the relationship
2334 throw new IllegalStateException("descendant focusability must be "
2341 * Look for a descendant to call {@link View#requestFocus} on.
4228 * Offset a rectangle that is in a descendant's coordinate
4230 * @param descendant A descendant of this view
4231 * @param rect A rectangle defined in descendant's coordinate space.
4233 public final void offsetDescendantRectToMyCoords(View descendant, Rect rect) {
4234 offsetRectBetweenParentAndChild(descendant, rect, true, false);
4240 * @param descendant A descendant of this view
4241 * @param rect A rectangle defined in descendant's coordinate space.
4243 public final void offsetRectIntoDescendantCoords(View descendant, Rect rect) {
4244 offsetRectBetweenParentAndChild(descendant, rect, false, false);
4248 * Helper method that offsets a rect either from parent to descendant or
4249 * descendant to parent.
4251 void offsetRectBetweenParentAndChild(View descendant, Rect rect,
4255 if (descendant == this) {
4259 ViewParent theParent = descendant.mParent;
4267 rect.offset(descendant.mLeft - descendant.mScrollX,
4268 descendant.mTop - descendant.mScrollY);
4278 rect.offset(descendant.mScrollX - descendant.mLeft,
4279 descendant.mScrollY - descendant.mTop);
4282 descendant = (View) theParent;
4283 theParent = descendant.mParent;
4290 rect.offset(descendant.mLeft - descendant.mScrollX,
4291 descendant.mTop - descendant.mScrollY);
4293 rect.offset(descendant.mScrollX - descendant.mLeft,
4294 descendant.mScrollY - descendant.mTop);
4297 throw new IllegalArgumentException("parameter must be a descendant of this view");