Lines Matching refs:rect
193 RectF rect = new RectF(0, 0, in center() local
197 m.mapRect(rect); in center()
199 float height = rect.height(); in center()
200 float width = rect.width(); in center()
207 deltaY = (viewHeight - height) / 2 - rect.top; in center()
208 } else if (rect.top > 0) { in center()
209 deltaY = -rect.top; in center()
210 } else if (rect.bottom < viewHeight) { in center()
211 deltaY = getHeight() - rect.bottom; in center()
218 deltaX = (viewWidth - width) / 2 - rect.left; in center()
219 } else if (rect.left > 0) { in center()
220 deltaX = -rect.left; in center()
221 } else if (rect.right < viewWidth) { in center()
222 deltaX = viewWidth - rect.right; in center()