Home
last modified time | relevance | path

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

/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DCropView.java432 float targetRatio = mAspectRatio == UNSPECIFIED in setInitRectangle() local
437 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() local
488 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 …]
DPositionController.java1801 private boolean doAnimation(float targetRatio, int kind) { in doAnimation() argument
1804 mToRatio = targetRatio; in doAnimation()
/packages/apps/LegacyCamera/src/com/android/camera/
DUtil.java375 List<Size> sizes, double targetRatio) { in getOptimalPreviewSize() argument
400 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; in getOptimalPreviewSize()
424 List<Size> sizes, double targetRatio) { in getOptimalVideoSnapshotPictureSize() argument
434 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; in getOptimalVideoSnapshotPictureSize()
/packages/apps/Camera/src/com/android/camera/
DUtil.java361 List<Size> sizes, double targetRatio) { in getOptimalPreviewSize() argument
382 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; in getOptimalPreviewSize()
406 List<Size> sizes, double targetRatio) { in getOptimalVideoSnapshotPictureSize() argument
416 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; in getOptimalVideoSnapshotPictureSize()