/cts/tests/app/src/android/app/cts/ |
D | PictureInPictureParamsTest.java | 62 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/ |
D | DisplayUtils.java | 50 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/ |
D | PlayVideoActivity.java | 195 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/ |
D | DisplayMetricsSession.java | 49 public void changeAspectRatio(double aspectRatio, int orientation) { in changeAspectRatio() argument 52 final int larger = (int) (smaller * aspectRatio); in changeAspectRatio()
|
D | MultiDisplayTestBase.java | 172 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()
|
D | ActivityManagerTestBase.java | 1497 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/ |
D | OrientationTestUtils.java | 86 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/ |
D | MediaProjectionMirroringTest.java | 330 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/ |
D | RVCVCameraPreview.java | 72 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/ |
D | CameraOrientationActivity.java | 435 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/ |
D | CompatChangeTests.java | 1025 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/ |
D | CaptureRequestTest.java | 3202 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/ |
D | CameraTestUtils.java | 2294 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/ |
D | opencv3-android.jar | META-INF/
META-INF/MANIFEST.MF
org/
org/opencv/
org/ ... |