Lines Matching full:bounds
1010 // the folders bounds.
1015 Rect bounds = new Rect();
1016 parent.getDescendantRectRelativeToSelf(boundingLayout, bounds);
1021 int left = Math.min(Math.max(bounds.left, centeredLeft),
1022 bounds.left + bounds.width() - width);
1023 int top = Math.min(Math.max(bounds.top, centeredTop),
1024 bounds.top + bounds.height() - height);
1028 } else if (width >= bounds.width()) {
1029 // If the folder doesn't fit within the bounds, center it about the desired bounds
1030 left = bounds.left + (bounds.width() - width) / 2;
1032 if (height >= bounds.height()) {
1033 top = bounds.top + (bounds.height() - height) / 2;