Home
last modified time | relevance | path

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

/packages/apps/Camera2/src/com/android/camera/
DCaptureLayoutHelper.java245 float previewAspectRatio, int rotation) { in getPositionConfiguration() argument
251 if (previewAspectRatio == TextureViewHelper.MATCH_SCREEN) { in getPositionConfiguration()
260 if (previewAspectRatio < 1) { in getPositionConfiguration()
261 previewAspectRatio = 1 / previewAspectRatio; in getPositionConfiguration()
269 float spaceNeededAlongLongerEdge = shorterEdge * previewAspectRatio; in getPositionConfiguration()
277 previewShorterEdge = longerEdge / previewAspectRatio; in getPositionConfiguration()
292 } else if (previewAspectRatio > 14f / 9f) { in getPositionConfiguration()
298 previewLongerEdge = shorterEdge * previewAspectRatio; in getPositionConfiguration()
314 previewShorterEdge = previewLongerEdge / previewAspectRatio; in getPositionConfiguration()
333 previewLongerEdge = shorterEdge * previewAspectRatio; in getPositionConfiguration()
/packages/apps/Camera2/src/com/android/camera/captureintent/resource/
DResourceSurfaceTextureNexus4Impl.java70 final AspectRatio previewAspectRatio = AspectRatio.of(previewSize); in setPreviewSize() local
75 .updatePreviewAspectRatio(previewAspectRatio.toFloat()); in setPreviewSize()
82 if (previewAspectRatio.equals(AspectRatio.of16x9())) { in setPreviewSize()