Lines Matching refs:inner

27  * Maintains invariant that inner rectangle is constrained to be within the
33 private RectF inner;
39 inner = new RectF(innerRect);
40 innerRotated = CropMath.getCornersFromRect(inner);
49 inner = new RectF(innerRect);
50 innerRotated = CropMath.getCornersFromRect(inner);
59 inner.set(innerRect);
60 innerRotated = CropMath.getCornersFromRect(inner);
67 * Sets inner, and re-constrains it to fit within the rotated bounding rect.
70 if (inner.equals(newInner))
72 inner = newInner;
73 innerRotated = CropMath.getCornersFromRect(inner);
80 * Sets rotation, and re-constrains inner to fit within the rotated bounding rect.
86 innerRotated = CropMath.getCornersFromRect(inner);
93 r.set(inner);
101 return new RectF(inner);
109 * Tries to move the inner rectangle by (dx, dy). If this would cause it to leave
110 * the bounding rectangle, snaps the inner rectangle to the edge of the bounding
116 RectF translatedInner = new RectF(inner);
168 // reconstrain to update inner
173 * Attempts to resize the inner rectangle. If this would cause it to leave
174 * the bounding rect, clips the inner rectangle to fit.
182 float[] oldInnerCorners = CropMath.getCornersFromRect(inner);
236 // reconstrain to update inner
241 * Attempts to resize the inner rectangle. If this would cause it to leave
242 * the bounding rect, clips the inner rectangle to fit while maintaining
249 float aspectW = inner.width();
250 float aspectH = inner.height();
255 float[] oldInnerCorners = CropMath.getCornersFromRect(inner);
260 if (inner.top == newInner.top) {
261 if (inner.left == newInner.left)
263 else if (inner.right == newInner.right)
265 } else if (inner.bottom == newInner.bottom) {
266 if (inner.right == newInner.right)
268 else if (inner.left == newInner.left)
312 RectF ret = new RectF(inner);
329 // reconstrain to update inner
349 inner = CropMath.trapToRect(unrotated);