diff options
| author | 2023-09-07 14:06:19 +0000 | |
|---|---|---|
| committer | 2023-09-07 14:06:19 +0000 | |
| commit | c16a501ba5ce4eecee6bbeb3ef3b828fd05f9ecf (patch) | |
| tree | e706b0f9191733e7190fee9e3faf8252d55d6d30 | |
| parent | 025a384f4685152b9870ac2a8a04e5bb5ec23c4c (diff) | |
| parent | b8027a3494f89b2753a8cc8d63e8be921e770637 (diff) | |
Merge "Stub isUserAppAspectRatioSettingsEnabled" into udc-qpr-dev
| -rw-r--r-- | services/tests/wmtests/src/com/android/server/wm/SizeCompatTests.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/services/tests/wmtests/src/com/android/server/wm/SizeCompatTests.java b/services/tests/wmtests/src/com/android/server/wm/SizeCompatTests.java index d5afe3b2f078..03e0401013f2 100644 --- a/services/tests/wmtests/src/com/android/server/wm/SizeCompatTests.java +++ b/services/tests/wmtests/src/com/android/server/wm/SizeCompatTests.java @@ -2404,8 +2404,9 @@ public class SizeCompatTests extends WindowTestsBase { .setUid(android.os.Process.myUid()) .build(); activity.mDisplayContent.setIgnoreOrientationRequest(true /* ignoreOrientationRequest */); - activity.mWmService.mLetterboxConfiguration - .setUserAppAspectRatioSettingsOverrideEnabled(enabled); + spyOn(activity.mWmService.mLetterboxConfiguration); + doReturn(enabled).when(activity.mWmService.mLetterboxConfiguration) + .isUserAppAspectRatioSettingsEnabled(); // Set user aspect ratio override final IPackageManager pm = mAtm.getPackageManager(); try { @@ -4244,6 +4245,7 @@ public class SizeCompatTests extends WindowTestsBase { // Set up a display in landscape with a fixed-orientation PORTRAIT app setUpDisplaySizeWithApp(2800, 1400); mActivity.mDisplayContent.setIgnoreOrientationRequest(true /* ignoreOrientationRequest */); + mWm.mLetterboxConfiguration.setIsAutomaticReachabilityInBookModeEnabled(false); mWm.mLetterboxConfiguration.setLetterboxHorizontalPositionMultiplier(0.5f); prepareUnresizable(mActivity, 1.75f, SCREEN_ORIENTATION_PORTRAIT); |