Home
last modified time | relevance | path

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

/packages/apps/Camera2/src/com/android/camera/
DCaptureModuleUtil.java55 public static Size getOptimalPreviewSize(Size[] sizes,double targetRatio) { in getOptimalPreviewSize() argument
56 return getOptimalPreviewSize(sizes, targetRatio, null); in getOptimalPreviewSize()
66 double targetRatio, Double aspectRatioTolerance) { in getOptimalPreviewSize() argument
87 .getOptimalPreviewSizeIndex(camera1Sizes, targetRatio, in getOptimalPreviewSize()
/packages/apps/Camera2/src/com/android/camera/util/
DCameraUtil.java477 public static Size getOptimalPreviewSize(List<Size> sizes, double targetRatio) { in getOptimalPreviewSize() argument
478 int optimalPickIndex = getOptimalPreviewSizeIndex(sizes, targetRatio); in getOptimalPreviewSize()
500 public static int getOptimalPreviewSizeIndex(List<Size> sizes, double targetRatio) { in getOptimalPreviewSizeIndex() argument
506 return getOptimalPreviewSizeIndex(sizes, targetRatio, aspectRatioTolerance); in getOptimalPreviewSizeIndex()
523 List<Size> previewSizes, double targetRatio, Double aspectRatioTolerance) { in getOptimalPreviewSizeIndex() argument
531 return getOptimalPreviewSizeIndex(previewSizes, targetRatio); in getOptimalPreviewSizeIndex()
548 if (Math.abs(ratio - targetRatio) > aspectRatioTolerance) { in getOptimalPreviewSizeIndex()
614 final double targetRatio = (double) targetWidth / targetHeight; in getOptimalVideoSnapshotPictureSize() local
617 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) { in getOptimalVideoSnapshotPictureSize()
/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/Camera2/src/com/android/camera/settings/
DResolutionUtil.java149 for (Float targetRatio : sortedDesiredAspectRatios) { in getDisplayableSizesFromSupported()
152 if (Math.abs(aspectRatio.floatValue() - targetRatio) <= ASPECT_RATIO_TOLERANCE) { in getDisplayableSizesFromSupported()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPositionController.java1800 private boolean doAnimation(float targetRatio, int kind) { in doAnimation() argument
1803 mToRatio = targetRatio; in doAnimation()