Searched refs:targetRatio (Results 1 – 4 of 4) sorted by relevance
432 float targetRatio = mAspectRatio == UNSPECIFIED in setInitRectangle() local437 if (targetRatio > 1) { in setInitRectangle()438 h = w / targetRatio; in setInitRectangle()440 w = h * targetRatio; in setInitRectangle()487 float targetRatio = mAspectRatio * mImageHeight / mImageWidth; in moveEdges() local488 if (r.width() / r.height() > targetRatio) { in moveEdges()489 float height = r.width() / targetRatio; in moveEdges()496 float width = r.height() * targetRatio; in moveEdges()503 if (r.width() / r.height() > targetRatio) { in moveEdges()504 float width = r.height() * targetRatio; in moveEdges()[all …]
1801 private boolean doAnimation(float targetRatio, int kind) { in doAnimation() argument1804 mToRatio = targetRatio; in doAnimation()
375 List<Size> sizes, double targetRatio) { in getOptimalPreviewSize() argument400 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; in getOptimalPreviewSize()424 List<Size> sizes, double targetRatio) { in getOptimalVideoSnapshotPictureSize() argument434 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; in getOptimalVideoSnapshotPictureSize()
361 List<Size> sizes, double targetRatio) { in getOptimalPreviewSize() argument382 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; in getOptimalPreviewSize()406 List<Size> sizes, double targetRatio) { in getOptimalVideoSnapshotPictureSize() argument416 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; in getOptimalVideoSnapshotPictureSize()