Lines Matching full:preview
30 * preview should be transformed. The two things that could affect bottom bar layout
31 * and preview transform are: window size and preview aspect ratio. Once these two
32 * things are set, the layout of bottom bar and preview rect will be calculated
35 * Note that this helper assumes that preview TextureView will be laid out full
48 /** Aspect ratio of preview. It could be 0, meaning match the screen aspect ratio,
57 * PositionConfiguration contains the layout info for bottom bar and preview
58 * rect, as well as whether bottom bar should be overlaid on top of preview.
62 * This specifies the rect of preview on screen.
70 * This indicates whether bottom bar should overlay itself on top of preview.
93 * of uncovered preview area, which is used to lay out mode list, mode options,
101 * Updates bottom bar rect and preview rect. This gets called whenever
102 * preview aspect ratio changes or main activity layout size changes.
130 * Returns the rect that preview should occupy based on aspect ratio. If not
147 * This returns the rect that is available to display the preview, and
157 * Returns the sub-rect of the preview that is not being blocked by the
210 * of the preview.
232 * Calculates the layout rect of bottom bar and the size of preview based on
239 * @param previewAspectRatio aspect ratio of the preview
242 * preview rect and whether bottom bar should be overlaid.
248 // If the aspect ratio is defined as fill the screen, then preview should
275 // Preview aspect ratio > screen aspect ratio: fit longer edge.
293 // If the preview aspect ratio is large enough, simply offset the
294 // preview to the bottom/right.
312 // Need to scale down the preview to fit in the space excluding the bottom bar.