Lines Matching refs:rect

32  * things are set, the layout of bottom bar and preview rect will be calculated
58 * rect, as well as whether bottom bar should be overlaid on top of preview.
62 * This specifies the rect of preview on screen.
66 * This specifies the rect where bottom bar should be laid out in.
101 * Updates bottom bar rect and preview rect. This gets called whenever
113 * Returns the rect that bottom bar should be laid out in. If not enough info
114 * has been provided to calculate this, return an empty rect. Note that the rect
130 * Returns the rect that preview should occupy based on aspect ratio. If not
131 * enough info has been provided to calculate this, return an empty rect. Note
132 * that the rect returned is relative to the content layout of the activity.
147 * This returns the rect that is available to display the preview, and
150 * @return the rect.
157 * Returns the sub-rect of the preview that is not being blocked by the
160 * empty rect. Note that the rect returned is relative to the content layout
232 * Calculates the layout rect of bottom bar and the size of preview based on
241 * @return a custom position configuration that contains bottom bar rect,
242 * preview rect and whether bottom bar should be overlaid.
249 // take the screen rect.
358 // Round the rect first to avoid rounding errors later on.
366 * Round the float coordinates in the given rect, and store the rounded value
367 * back in the rect.
369 public static void round(RectF rect) {
370 if (rect == null) {
373 float left = Math.round(rect.left);
374 float top = Math.round(rect.top);
375 float right = Math.round(rect.right);
376 float bottom = Math.round(rect.bottom);
377 rect.set(left, top, right, bottom);