Searched refs:previewAspectRatio (Results 1 – 2 of 2) sorted by relevance
245 float previewAspectRatio, int rotation) { in getPositionConfiguration() argument251 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()
70 final AspectRatio previewAspectRatio = AspectRatio.of(previewSize); in setPreviewSize() local75 .updatePreviewAspectRatio(previewAspectRatio.toFloat()); in setPreviewSize()82 if (previewAspectRatio.equals(AspectRatio.of16x9())) { in setPreviewSize()