Searched refs:targetRatio (Results 1 – 5 of 5) sorted by relevance
/packages/apps/Camera2/src/com/android/camera/ |
D | CaptureModuleUtil.java | 56 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/ |
D | CameraUtil.java | 477 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/ |
D | Util.java | 375 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/ |
D | ResolutionUtil.java | 151 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/ |
D | PositionController.java | 1800 private boolean doAnimation(float targetRatio, int kind) { in doAnimation() argument 1803 mToRatio = targetRatio; in doAnimation()
|