Home
last modified time | relevance | path

Searched refs:previewShorterEdge (Results 1 – 1 of 1) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/
DCaptureLayoutHelper.java272 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()
[all …]