Home
last modified time | relevance | path

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

/cts/apps/CtsVerifier/src/com/android/cts/verifier/streamquality/
DPlayVideoActivity.java194 float aspectRatio = ((float) mVideoWidth) / mVideoHeight;
195 if (rect.width() / aspectRatio <= rect.height()) {
197 lp.height = (int) (rect.width() / aspectRatio);
199 lp.width = (int) (rect.height() * aspectRatio);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVCameraPreview.java72 public void init(Camera camera, float aspectRatio, int rotation) { in init() argument
74 mCameraAspectRatio = aspectRatio; in init()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
DCameraOrientationActivity.java391 boolean aspectRatio = true; in getOptimalPreviewSize()
395 if(aspectRatio) { in getOptimalPreviewSize()
415 if (optimalSize == null && aspectRatio == true) { in getOptimalPreviewSize()
418 aspectRatio = false; in getOptimalPreviewSize()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCaptureRequestTest.java2572 double aspectRatio = (double)(size.getWidth()) / size.getHeight();
2573 if (isAspectRatioContained(aspectRatiosTested, aspectRatio, ASPECT_RATIO_THRESHOLD)) {
2581 aspectRatiosTested.add(aspectRatio);
2587 double aspectRatio, double delta) {
2589 if (Math.abs(ratio - aspectRatio) < delta) {