Home
last modified time | relevance | path

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

/cts/tests/app/src/android/app/cts/
DPictureInPictureParamsTest.java62 RemoteAction closeAction, Rational aspectRatio, Rational expandedAspectRatio, in assertPictureInPictureParamsGettersMatchValues() argument
69 .setAspectRatio(aspectRatio) in assertPictureInPictureParamsGettersMatchValues()
84 assertEquals(aspectRatio, params.getAspectRatio()); in assertPictureInPictureParamsGettersMatchValues()
/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.java195 float aspectRatio = ((float) mVideoWidth) / mVideoHeight;
196 if (rect.width() / aspectRatio <= rect.height()) {
198 lp.height = (int) (rect.width() / aspectRatio);
200 lp.width = (int) (rect.height() * aspectRatio);
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DDisplayMetricsSession.java49 public void changeAspectRatio(double aspectRatio, int orientation) { in changeAspectRatio() argument
52 final int larger = (int) (smaller * aspectRatio); in changeAspectRatio()
DMultiDisplayTestBase.java172 LetterboxAspectRatioSession(float aspectRatio) { in LetterboxAspectRatioSession() argument
174 executeShellCommand(WM_SET_LETTERBOX_STYLE_ASPECT_RATIO + aspectRatio); in LetterboxAspectRatioSession()
186 float aspectRatio) { in createManagedLetterboxAspectRatioSession() argument
187 return mObjectTracker.manage(new LetterboxAspectRatioSession(aspectRatio)); in createManagedLetterboxAspectRatioSession()
DActivityManagerTestBase.java1497 final float aspectRatio = Math.max(w, h) / (float) Math.min(w, h); in isCloseToSquareDisplay() local
1498 return aspectRatio <= closeToSquareMaxAspectRatio; in isCloseToSquareDisplay()
3198 public DisplayAspectRatioCloseable(int requestedOrientation, double aspectRatio) {
3200 aspectRatio, /* activities */ List.of());
3208 public DisplayAspectRatioCloseable(int requestedOrientation, double aspectRatio,
3211 aspectRatio, asList(activity));
3233 final int requestedOrientation, final double aspectRatio,
3255 if (ORIENTATION_UNDEFINED != requestedOrientation && aspectRatio > 0) {
3262 changeAspectRatio(aspectRatio,
3264 waitForDisplaySizeChanged(origDisplaySize, aspectRatio);
[all …]
/cts/tests/app/app/src/android/app/stubs/
DOrientationTestUtils.java86 final float aspectRatio = Math.max(w, h) / (float) Math.min(w, h); in isCloseToSquareBounds() local
87 return aspectRatio <= closeToSquareMaxAspectRatio; in isCloseToSquareBounds()
/cts/tests/tests/media/projection/src/android/media/projection/cts/
DMediaProjectionMirroringTest.java330 final float aspectRatio = currentBounds.x * 1f / currentBounds.y; in calculateScaledMirroredActivitySize() local
350 int adjustedHorizontalInsets = Math.round(sizeDifference.x / aspectRatio); in calculateScaledMirroredActivitySize()
351 int adjustedVerticalInsets = Math.round(sizeDifference.y / aspectRatio); in calculateScaledMirroredActivitySize()
353 mirroredHeight = Math.round(surfaceSize.x / aspectRatio) - adjustedVerticalInsets; in calculateScaledMirroredActivitySize()
360 int adjustedHorizontalInsets = Math.round(sizeDifference.x * aspectRatio); in calculateScaledMirroredActivitySize()
361 int adjustedVerticalInsets = Math.round(sizeDifference.y * aspectRatio); in calculateScaledMirroredActivitySize()
362 mirroredWidth = Math.round(surfaceSize.y * aspectRatio) - adjustedHorizontalInsets; in calculateScaledMirroredActivitySize()
/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.java435 boolean aspectRatio = true; in getOptimalSize()
439 if(aspectRatio) { in getOptimalSize()
459 if (optimalSize == null && aspectRatio == true) { in getOptimalSize()
462 aspectRatio = false; in getOptimalSize()
/cts/tests/framework/base/windowmanager/src/android/server/wm/display/
DCompatChangeTests.java1025 try (var aspectRatio = new DisplayAspectRatioCloseable(ORIENTATION_LANDSCAPE, 2.0f); in testSandbox_viewApiForLetterboxedActivity() argument
1046 try (var aspectRatio = new DisplayAspectRatioCloseable(ORIENTATION_LANDSCAPE, 2.0f); in testNoSandbox_viewApiForLetterboxedActivity() argument
1064 try (var aspectRatio = new DisplayAspectRatioCloseable(ORIENTATION_LANDSCAPE, 2.0f); in testNoSandbox_viewApiForLetterboxedActivityOptOut() argument
1721 try (var aspectRatio = new DisplayAspectRatioCloseable(ORIENTATION_LANDSCAPE, 2.0f)) { in runLetterboxSandboxTest() argument
1722 assertThat(aspectRatio.getInitialDisplayAspectRatio()) in runLetterboxSandboxTest()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCaptureRequestTest.java3202 double aspectRatio = (double)(size.getWidth()) / size.getHeight();
3203 if (isAspectRatioContained(aspectRatiosTested, aspectRatio, ASPECT_RATIO_THRESHOLD)) {
3211 aspectRatiosTested.add(aspectRatio);
3217 double aspectRatio, double delta) {
3219 if (Math.abs(ratio - aspectRatio) < delta) {
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java2294 public static Size getMaxSize(Size[] sizes, float aspectRatio) { in getMaxSize() argument
2302 if (aspectRatio > 0 && Math.abs(ar - aspectRatio) > ASPECT_RATIO_MATCH_THRESHOLD) { in getMaxSize()
2362 private static Size getMaxSizeWithBound(Size[] sizes, Size bound, float aspectRatio) { in getMaxSizeWithBound() argument
2371 if (aspectRatio > 0 && Math.abs(ar - aspectRatio) > ASPECT_RATIO_MATCH_THRESHOLD) { in getMaxSizeWithBound()
/cts/apps/CtsVerifier/libs/
Dopencv3-android.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/opencv/ org/ ...