Home
last modified time | relevance | path

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

/packages/apps/Camera2/src/com/android/camera/util/
DAspectRatio.java32 public final class AspectRatio { class
33 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 AspectRatio
48 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 …]
/packages/apps/Camera2/src/com/android/camera/captureintent/resource/
DResourceSurfaceTextureNexus4Impl.java21 import com.android.camera.util.AspectRatio;
70 final AspectRatio previewAspectRatio = AspectRatio.of(previewSize); in setPreviewSize()
82 if (previewAspectRatio.equals(AspectRatio.of16x9())) { in setPreviewSize()
/packages/apps/Camera2/src/com/android/camera/one/v2/common/
DPictureSizeCalculator.java23 import com.android.camera.util.AspectRatio;
154 Rect cropRegion = getPostCrop(AspectRatio.of(targetSize), size); in computeConfiguration()
172 private Rect getPostCrop(AspectRatio targetAspect, Size actualSize) { in getPostCrop()
/packages/apps/TV/src/com/android/tv/util/
DUtils.java106 private enum AspectRatio { enum in Utils
114 AspectRatio(int width, int height) { in AspectRatio() method in Utils.AspectRatio
522 for (AspectRatio ratio : AspectRatio.values()) { in getAspectRatioString()
535 for (AspectRatio ratio : AspectRatio.values()) { in getAspectRatioString()