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.java56 public static Size getOptimalPreviewSize(Size[] sizes, double targetRatio, Activity context) { in getOptimalPreviewSize() argument
57 return getOptimalPreviewSize(sizes, targetRatio, null, context); in getOptimalPreviewSize()
67 double targetRatio, Double aspectRatioTolerance, Activity context) { in getOptimalPreviewSize() argument
88 .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
479 int optimalPickIndex = getOptimalPreviewSizeIndex(sizes, targetRatio, context); in getOptimalPreviewSize()
502 public static int getOptimalPreviewSizeIndex(List<Size> sizes, double targetRatio, in getOptimalPreviewSizeIndex() argument
509 return getOptimalPreviewSizeIndex(sizes, targetRatio, aspectRatioTolerance, context); in getOptimalPreviewSizeIndex()
527 List<Size> previewSizes, double targetRatio, Double aspectRatioTolerance, in getOptimalPreviewSizeIndex() argument
536 return getOptimalPreviewSizeIndex(previewSizes, targetRatio, context); in getOptimalPreviewSizeIndex()
553 if (Math.abs(ratio - targetRatio) > aspectRatioTolerance) { in getOptimalPreviewSizeIndex()
619 final double targetRatio = (double) targetWidth / targetHeight; in getOptimalVideoSnapshotPictureSize() local
622 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.java151 for (Float targetRatio : sortedDesiredAspectRatios) { in getDisplayableSizesFromSupported()
154 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()