Loading services/core/java/com/android/server/wm/LetterboxUiController.java +125 −260 File changed.Preview size limit exceeded, changes collapsed. Show changes services/tests/wmtests/src/com/android/server/wm/DisplayRotationCompatPolicyTests.java +5 −4 Original line number Diff line number Diff line Loading @@ -258,8 +258,8 @@ public final class DisplayRotationCompatPolicyTests extends WindowTestsBase { public void testTreatmentDisabledPerApp_noForceRotationOrRefresh() throws Exception { configureActivity(SCREEN_ORIENTATION_PORTRAIT); when(mActivity.mLetterboxUiController.shouldForceRotateForCameraCompat()) .thenReturn(false); doReturn(false).when(mActivity.mLetterboxUiController) .shouldForceRotateForCameraCompat(); mCameraAvailabilityCallback.onCameraOpened(CAMERA_ID_1, TEST_PACKAGE_1); Loading Loading @@ -459,8 +459,9 @@ public final class DisplayRotationCompatPolicyTests extends WindowTestsBase { public void testOnActivityConfigurationChanging_refreshDisabledViaFlag_noRefresh() throws Exception { configureActivity(SCREEN_ORIENTATION_PORTRAIT); when(mActivity.mLetterboxUiController.shouldRefreshActivityForCameraCompat()) .thenReturn(false); doReturn(false).when( mActivity.mLetterboxUiController).shouldRefreshActivityForCameraCompat(); mCameraAvailabilityCallback.onCameraOpened(CAMERA_ID_1, TEST_PACKAGE_1); callOnActivityConfigurationChanging(mActivity, /* isDisplayRotationChanging */ true); Loading Loading
services/core/java/com/android/server/wm/LetterboxUiController.java +125 −260 File changed.Preview size limit exceeded, changes collapsed. Show changes
services/tests/wmtests/src/com/android/server/wm/DisplayRotationCompatPolicyTests.java +5 −4 Original line number Diff line number Diff line Loading @@ -258,8 +258,8 @@ public final class DisplayRotationCompatPolicyTests extends WindowTestsBase { public void testTreatmentDisabledPerApp_noForceRotationOrRefresh() throws Exception { configureActivity(SCREEN_ORIENTATION_PORTRAIT); when(mActivity.mLetterboxUiController.shouldForceRotateForCameraCompat()) .thenReturn(false); doReturn(false).when(mActivity.mLetterboxUiController) .shouldForceRotateForCameraCompat(); mCameraAvailabilityCallback.onCameraOpened(CAMERA_ID_1, TEST_PACKAGE_1); Loading Loading @@ -459,8 +459,9 @@ public final class DisplayRotationCompatPolicyTests extends WindowTestsBase { public void testOnActivityConfigurationChanging_refreshDisabledViaFlag_noRefresh() throws Exception { configureActivity(SCREEN_ORIENTATION_PORTRAIT); when(mActivity.mLetterboxUiController.shouldRefreshActivityForCameraCompat()) .thenReturn(false); doReturn(false).when( mActivity.mLetterboxUiController).shouldRefreshActivityForCameraCompat(); mCameraAvailabilityCallback.onCameraOpened(CAMERA_ID_1, TEST_PACKAGE_1); callOnActivityConfigurationChanging(mActivity, /* isDisplayRotationChanging */ true); Loading