Home
last modified time | relevance | path

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

/cts/tests/tests/view/src/android/view/cts/util/
DDisplayUtils.java50 final float aspectRatio = Math.max(w, h) / (float) Math.min(w, h); in isCloseToSquareDisplay() local
51 return aspectRatio <= closeToSquareMaxAspectRatio; in isCloseToSquareDisplay()
/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/tests/app/app/src/android/app/stubs/
DOrientationTestUtils.java88 final float aspectRatio = Math.max(w, h) / (float) Math.min(w, h); in isCloseToSquareDisplay() local
89 return aspectRatio <= closeToSquareMaxAspectRatio; in isCloseToSquareDisplay()
/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/tests/framework/base/windowmanager/src/android/server/wm/
DMultiDisplayTestBase.java292 void changeAspectRatio(double aspectRatio, int orientation) { in changeAspectRatio() argument
295 final int larger = (int) (smaller * aspectRatio); in changeAspectRatio()
364 LetterboxAspectRatioSession(int displayId, float aspectRatio) { in LetterboxAspectRatioSession() argument
372 executeShellCommand(WM_SET_LETTERBOX_STYLE_ASPECT_RATIO + aspectRatio); in LetterboxAspectRatioSession()
386 float aspectRatio) { in createManagedLetterboxAspectRatioSession() argument
387 return mObjectTracker.manage(new LetterboxAspectRatioSession(displayId, aspectRatio)); in createManagedLetterboxAspectRatioSession()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
DCameraOrientationActivity.java403 boolean aspectRatio = true; in getOptimalSize()
407 if(aspectRatio) { in getOptimalSize()
427 if (optimalSize == null && aspectRatio == true) { in getOptimalSize()
430 aspectRatio = false; in getOptimalSize()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCaptureRequestTest.java2948 double aspectRatio = (double)(size.getWidth()) / size.getHeight();
2949 if (isAspectRatioContained(aspectRatiosTested, aspectRatio, ASPECT_RATIO_THRESHOLD)) {
2957 aspectRatiosTested.add(aspectRatio);
2963 double aspectRatio, double delta) {
2965 if (Math.abs(ratio - aspectRatio) < delta) {
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityManagerTestBase.java1192 final float aspectRatio = Math.max(w, h) / (float) Math.min(w, h); in isCloseToSquareDisplay() local
1193 return aspectRatio <= closeToSquareMaxAspectRatio; in isCloseToSquareDisplay()
/cts/apps/CtsVerifier/libs/
Dopencv3-android.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/opencv/ org/ ...