Lines Matching refs:previewShorterEdge
272 float previewShorterEdge; in getPositionConfiguration() local
277 previewShorterEdge = longerEdge / previewAspectRatio; in getPositionConfiguration()
282 … config.mPreviewRect.set(0, height / 2 - previewShorterEdge / 2, previewLongerEdge, in getPositionConfiguration()
283 height / 2 + previewShorterEdge / 2); in getPositionConfiguration()
284 config.mBottomBarRect.set(width - barSize, height / 2 - previewShorterEdge / 2, in getPositionConfiguration()
285 width, height / 2 + previewShorterEdge / 2); in getPositionConfiguration()
287 config.mPreviewRect.set(width / 2 - previewShorterEdge / 2, 0, in getPositionConfiguration()
288 width / 2 + previewShorterEdge / 2, previewLongerEdge); in getPositionConfiguration()
289 config.mBottomBarRect.set(width / 2 - previewShorterEdge / 2, height - barSize, in getPositionConfiguration()
290 width / 2 + previewShorterEdge / 2, height); in getPositionConfiguration()
297 previewShorterEdge = shorterEdge; in getPositionConfiguration()
303 config.mPreviewRect.set(left, 0, right, previewShorterEdge); in getPositionConfiguration()
308 config.mPreviewRect.set(0, top, previewShorterEdge, bottom); in getPositionConfiguration()
314 previewShorterEdge = previewLongerEdge / previewAspectRatio; in getPositionConfiguration()
318 … config.mPreviewRect.set(0, height / 2 - previewShorterEdge / 2, previewLongerEdge, in getPositionConfiguration()
319 height / 2 + previewShorterEdge / 2); in getPositionConfiguration()
320 config.mBottomBarRect.set(width - barSize, height / 2 - previewShorterEdge / 2, in getPositionConfiguration()
321 width, height / 2 + previewShorterEdge / 2); in getPositionConfiguration()
323 config.mPreviewRect.set(width / 2 - previewShorterEdge / 2, 0, in getPositionConfiguration()
324 width / 2 + previewShorterEdge / 2, previewLongerEdge); in getPositionConfiguration()
325 config.mBottomBarRect.set(width / 2 - previewShorterEdge / 2, height - barSize, in getPositionConfiguration()
326 width / 2 + previewShorterEdge / 2, height); in getPositionConfiguration()
332 previewShorterEdge = shorterEdge; in getPositionConfiguration()
338 config.mPreviewRect.set(left, 0, right, previewShorterEdge); in getPositionConfiguration()
343 config.mPreviewRect.set(0, top, previewShorterEdge, bottom); in getPositionConfiguration()