Lines Matching refs:r

180         Rect r = computeLayout();  in getHit()  local
185 float distX = x - r.centerX(); in getHit()
186 float distY = y - r.centerY(); in getHit()
213 boolean verticalCheck = (y >= r.top - hysteresis) in getHit()
214 && (y < r.bottom + hysteresis); in getHit()
215 boolean horizCheck = (x >= r.left - hysteresis) in getHit()
216 && (x < r.right + hysteresis); in getHit()
219 if ((Math.abs(r.left - x) < hysteresis) && verticalCheck) { in getHit()
222 if ((Math.abs(r.right - x) < hysteresis) && verticalCheck) { in getHit()
225 if ((Math.abs(r.top - y) < hysteresis) && horizCheck) { in getHit()
228 if ((Math.abs(r.bottom - y) < hysteresis) && horizCheck) { in getHit()
233 if (retval == GROW_NONE && r.contains((int) x, (int) y)) { in getHit()
243 Rect r = computeLayout(); in handleMotion() local
248 moveBy(dx * (mCropRect.width() / r.width()), in handleMotion()
249 dy * (mCropRect.height() / r.height())); in handleMotion()
260 float xDelta = dx * (mCropRect.width() / r.width()); in handleMotion()
261 float yDelta = dy * (mCropRect.height() / r.height()); in handleMotion()
301 RectF r = new RectF(mCropRect); in growBy() local
302 if (dx > 0F && r.width() + 2 * dx > mImageRect.width()) { in growBy()
303 float adjustment = (mImageRect.width() - r.width()) / 2F; in growBy()
309 if (dy > 0F && r.height() + 2 * dy > mImageRect.height()) { in growBy()
310 float adjustment = (mImageRect.height() - r.height()) / 2F; in growBy()
317 r.inset(-dx, -dy); in growBy()
321 if (r.width() < widthCap) { in growBy()
322 r.inset(-(widthCap - r.width()) / 2F, 0F); in growBy()
327 if (r.height() < heightCap) { in growBy()
328 r.inset(0F, -(heightCap - r.height()) / 2F); in growBy()
332 if (r.left < mImageRect.left) { in growBy()
333 r.offset(mImageRect.left - r.left, 0F); in growBy()
334 } else if (r.right > mImageRect.right) { in growBy()
335 r.offset(-(r.right - mImageRect.right), 0); in growBy()
337 if (r.top < mImageRect.top) { in growBy()
338 r.offset(0F, mImageRect.top - r.top); in growBy()
339 } else if (r.bottom > mImageRect.bottom) { in growBy()
340 r.offset(0F, -(r.bottom - mImageRect.bottom)); in growBy()
343 mCropRect.set(r); in growBy()
356 RectF r = new RectF(mCropRect.left, mCropRect.top, in computeLayout() local
358 mMatrix.mapRect(r); in computeLayout()
359 return new Rect(Math.round(r.left), Math.round(r.top), in computeLayout()
360 Math.round(r.right), Math.round(r.bottom)); in computeLayout()