Searched refs:AspectRatio (Results 1 – 4 of 4) sorted by relevance
32 public final class AspectRatio { class33 private static final AspectRatio ASPECT_RATIO_4x3 = AspectRatio.of(4, 3);34 private static final AspectRatio ASPECT_RATIO_16x9 = AspectRatio.of(16, 9);43 private AspectRatio(int width, int height) { in AspectRatio() method in AspectRatio48 public static AspectRatio of(int width, int height) { in of()52 return new AspectRatio(simplifiedWidth, simplifiedHeight); in of()55 public static AspectRatio of(Size size) { in of()59 public static AspectRatio of4x3() { in of4x3()63 public static AspectRatio of16x9() { in of16x9()83 if (!(o instanceof AspectRatio)) in equals()[all …]
21 import com.android.camera.util.AspectRatio;70 final AspectRatio previewAspectRatio = AspectRatio.of(previewSize); in setPreviewSize()82 if (previewAspectRatio.equals(AspectRatio.of16x9())) { in setPreviewSize()
23 import com.android.camera.util.AspectRatio;155 Rect cropRegion = getPostCrop(AspectRatio.of(targetSize), size); in computeConfiguration()173 private Rect getPostCrop(AspectRatio targetAspect, Size actualSize) { in getPostCrop()
108 private enum AspectRatio { enum in Utils116 AspectRatio(int width, int height) { in AspectRatio() method in Utils.AspectRatio524 for (AspectRatio ratio : AspectRatio.values()) { in getAspectRatioString()537 for (AspectRatio ratio : AspectRatio.values()) { in getAspectRatioString()