Lines Matching refs:bounds
797 Rect bounds = new Rect();
798 parent.getDescendantRectRelativeToSelf(boundingLayout, bounds);
801 int left = Math.min(Math.max(bounds.left, centeredLeft),
802 bounds.left + bounds.width() - width);
803 int top = Math.min(Math.max(bounds.top, centeredTop),
804 bounds.top + bounds.height() - height);
805 // If the folder doesn't fit within the bounds, center it about the desired bounds
806 if (width >= bounds.width()) {
807 left = bounds.left + (bounds.width() - width) / 2;
809 if (height >= bounds.height()) {
810 top = bounds.top + (bounds.height() - height) / 2;