/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | LetterboxConfigurationTest.java | 65 private LetterboxConfiguration mLetterboxConfiguration; field in LetterboxConfigurationTest 72 mLetterboxConfiguration = new LetterboxConfiguration(mContext, in setUp() 79 mLetterboxConfiguration.getLetterboxPositionForHorizontalReachability(halfFoldPose); in test_whenReadingValues_storeIsInvoked() 82 mLetterboxConfiguration.getLetterboxPositionForVerticalReachability(halfFoldPose); in test_whenReadingValues_storeIsInvoked() 91 mLetterboxConfiguration.movePositionForHorizontalReachabilityToNextRightStop( in test_whenSettingValues_updateConfigurationIsInvoked() 95 mLetterboxConfiguration.movePositionForVerticalReachabilityToNextBottomStop( in test_whenSettingValues_updateConfigurationIsInvoked() 243 when(mLetterboxConfiguration.getLetterboxPositionForHorizontalReachability(halfFoldPose)) in assertForHorizontalMove() 245 move.accept(mLetterboxConfiguration, halfFoldPose); in assertForHorizontalMove() 254 when(mLetterboxConfiguration.getLetterboxPositionForVerticalReachability(halfFoldPose)) in assertForVerticalMove() 256 move.accept(mLetterboxConfiguration, halfFoldPose); in assertForVerticalMove() [all …]
|
D | LetterboxUiControllerTest.java | 139 private LetterboxConfiguration mLetterboxConfiguration; field in LetterboxUiControllerTest 146 mLetterboxConfiguration = mWm.mLetterboxConfiguration; in setUp() 147 spyOn(mLetterboxConfiguration); in setUp() 165 doReturn(true).when(mLetterboxConfiguration).isCameraCompatTreatmentEnabled(); in testShouldIgnoreRequestedOrientation_cameraCompatTreatment_returnsTrue() 166 doReturn(true).when(mLetterboxConfiguration) in testShouldIgnoreRequestedOrientation_cameraCompatTreatment_returnsTrue() 192 doReturn(true).when(mLetterboxConfiguration) in testShouldIgnoreRequestedOrientation_propertyIsTrue_returnsTrue() 205 doReturn(true).when(mLetterboxConfiguration) in testShouldIgnoreRequestedOrientation_propertyIsFalseAndOverride_returnsFalse() 217 doReturn(true).when(mLetterboxConfiguration) in testShouldIgnoreOrientationRequestLoop_overrideDisabled_returnsFalse() 231 doReturn(true).when(mLetterboxConfiguration) in testShouldIgnoreOrientationRequestLoop_propertyIsFalseAndOverride_returnsFalse() 249 doReturn(true).when(mLetterboxConfiguration) in testShouldIgnoreOrientationRequestLoop_isLetterboxed_returnsFalse() [all …]
|
D | ActivityRefresherTests.java | 56 private LetterboxConfiguration mLetterboxConfiguration; field in ActivityRefresherTests 72 mLetterboxConfiguration = mDisplayContent.mWmService.mLetterboxConfiguration; in setUp() 73 spyOn(mLetterboxConfiguration); in setUp() 74 when(mLetterboxConfiguration.isCameraCompatTreatmentEnabled()) in setUp() 76 when(mLetterboxConfiguration.isCameraCompatRefreshEnabled()) in setUp() 78 when(mLetterboxConfiguration.isCameraCompatRefreshCycleThroughStopEnabled()) in setUp() 93 when(mLetterboxConfiguration.isCameraCompatRefreshEnabled()) in testShouldRefreshActivity_refreshDisabled() 149 when(mLetterboxConfiguration.isCameraCompatRefreshCycleThroughStopEnabled()) in testOnActivityConfigurationChanging_cycleThroughStopDisabled()
|
D | CameraStateMonitorTests.java | 63 private LetterboxConfiguration mLetterboxConfiguration; field in CameraStateMonitorTests 91 mLetterboxConfiguration = mDisplayContent.mWmService.mLetterboxConfiguration; in setUp() 92 spyOn(mLetterboxConfiguration); in setUp() 93 when(mLetterboxConfiguration.isCameraCompatTreatmentEnabled()) in setUp() 95 when(mLetterboxConfiguration.isCameraCompatRefreshEnabled()) in setUp() 97 when(mLetterboxConfiguration.isCameraCompatRefreshCycleThroughStopEnabled()) in setUp()
|
D | CameraCompatFreeformPolicyTests.java | 92 private LetterboxConfiguration mLetterboxConfiguration; field in CameraCompatFreeformPolicyTests 102 mLetterboxConfiguration = mDisplayContent.mWmService.mLetterboxConfiguration; in setUp() 103 spyOn(mLetterboxConfiguration); in setUp() 104 when(mLetterboxConfiguration.isCameraCompatTreatmentEnabled()) in setUp() 106 when(mLetterboxConfiguration.isCameraCompatRefreshEnabled()) in setUp() 108 when(mLetterboxConfiguration.isCameraCompatRefreshCycleThroughStopEnabled()) in setUp() 259 when(mLetterboxConfiguration.isCameraCompatRefreshCycleThroughStopEnabled()) in testOnActivityConfigurationChanging_cycleThroughStopDisabled()
|
D | DisplayRotationCompatPolicyTests.java | 93 private LetterboxConfiguration mLetterboxConfiguration; field in DisplayRotationCompatPolicyTests 104 mLetterboxConfiguration = mDisplayContent.mWmService.mLetterboxConfiguration; in setUp() 105 spyOn(mLetterboxConfiguration); in setUp() 106 when(mLetterboxConfiguration.isCameraCompatTreatmentEnabled()) in setUp() 108 when(mLetterboxConfiguration.isCameraCompatRefreshEnabled()) in setUp() 110 when(mLetterboxConfiguration.isCameraCompatRefreshCycleThroughStopEnabled()) in setUp() 188 when(mLetterboxConfiguration.isCameraCompatTreatmentEnabled()) in testOnScreenRotationAnimationFinished_treatmentNotEnabled_doNotShowToast() 242 when(mLetterboxConfiguration.isCameraCompatTreatmentEnabled()) in testTreatmentNotEnabled_noForceRotationOrRefresh() 256 when(mLetterboxConfiguration.isCameraCompatTreatmentEnabled()) in testTreatmentDisabledViaDeviceConfig_noForceRotationOrRefresh() 483 when(mLetterboxConfiguration.isCameraCompatRefreshEnabled()).thenReturn(false); in testOnActivityConfigurationChanging_refreshDisabledPerApp_noRefresh() [all …]
|
D | SizeCompatTests.java | 229 final LetterboxConfiguration config = mWm.mLetterboxConfiguration; in testReachabilityEnabledForTranslucentActivity() 354 mWm.mLetterboxConfiguration.setLetterboxVerticalPositionMultiplier(0.5f); in testRepositionLandscapeImmersiveAppWithDisplayCutout() 355 mWm.mLetterboxConfiguration.setIsVerticalReachabilityEnabled(true); in testRepositionLandscapeImmersiveAppWithDisplayCutout() 1083 spyOn(activity.mWmService.mLetterboxConfiguration); in testShouldCreateCompatDisplayUserAspectRatioFullscreenOverride() 1085 doReturn(true).when(activity.mWmService.mLetterboxConfiguration) in testShouldCreateCompatDisplayUserAspectRatioFullscreenOverride() 1742 mActivity.mWmService.mLetterboxConfiguration.setFixedOrientationLetterboxAspectRatio(1.1f); in testDisplayIgnoreOrientationRequest_fixedOrientationAppRespectMinAspectRatio() 1773 mActivity.mWmService.mLetterboxConfiguration.setFixedOrientationLetterboxAspectRatio(3); in testDisplayIgnoreOrientationRequest_fixedOrientationAppRespectMaxAspectRatio() 1802 mActivity.mWmService.mLetterboxConfiguration.setFixedOrientationLetterboxAspectRatio( in testDisplayIgnoreOrientationRequest_fixedOrientationAppWithAspectRatioOverride() 1897 mActivity.mWmService.mLetterboxConfiguration.setFixedOrientationLetterboxAspectRatio( in testDisplayIgnoreOrientationRequest_unresizableWithCorrespondingMinAspectRatio() 1899 mActivity.mWmService.mLetterboxConfiguration.setDefaultMinAspectRatioForUnresizableApps( in testDisplayIgnoreOrientationRequest_unresizableWithCorrespondingMinAspectRatio() [all …]
|
D | TransparentPolicyTest.java | 245 activity.mWmService.mLetterboxConfiguration in testTranslucentActivitiesWhenUnfolding() 287 spyOn(mWm.mLetterboxConfiguration); in runTestScenario() 288 when(mWm.mLetterboxConfiguration.isTranslucentLetterboxingEnabled()) in runTestScenario()
|
D | WindowTestsBase.java | 265 mAtm.mWindowManager.mLetterboxConfiguration.setFixedOrientationLetterboxAspectRatio(0); in setUpBase() 269 mAtm.mWindowManager.mLetterboxConfiguration.setLetterboxHorizontalPositionMultiplier(0.5f); in setUpBase() 273 mAtm.mWindowManager.mLetterboxConfiguration.setLetterboxVerticalPositionMultiplier(0.0f); in setUpBase() 277 mAtm.mWindowManager.mLetterboxConfiguration.setIsHorizontalReachabilityEnabled(false); in setUpBase() 281 mAtm.mWindowManager.mLetterboxConfiguration.setIsVerticalReachabilityEnabled(false); in setUpBase() 286 mAtm.mWindowManager.mLetterboxConfiguration in setUpBase() 292 mAtm.mWindowManager.mLetterboxConfiguration in setUpBase() 334 assertEquals(0, mWm.mLetterboxConfiguration.getFixedOrientationLetterboxAspectRatio(), in checkDeviceSpecificOverridesNotApplied()
|
D | TaskTests.java | 614 spyOn(mWm.mLetterboxConfiguration); in testTopActivityEligibleForUserAspectRatioButton() 656 spyOn(mWm.mLetterboxConfiguration); in testIsTopActivityTranslucent()
|
D | DisplayContentTests.java | 2567 mWm.mLetterboxConfiguration.getFixedOrientationLetterboxAspectRatio(), in testCreateTestDisplayContentFromDimensions() 2610 mWm.mLetterboxConfiguration.getFixedOrientationLetterboxAspectRatio(), in testCreateTestDisplayContentFromDisplayInfo()
|
D | WindowManagerServiceTests.java | 1533 mWm.mLetterboxConfiguration.setLetterboxBackgroundTypeOverride(letterboxBackgroundType); in setupLetterboxConfigurationWithBackgroundType()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | WindowManagerShellCommand.java | 81 private final LetterboxConfiguration mLetterboxConfiguration; field in WindowManagerShellCommand 86 mLetterboxConfiguration = service.mLetterboxConfiguration; in WindowManagerShellCommand() 681 mLetterboxConfiguration.setFixedOrientationLetterboxAspectRatio(aspectRatio); in runSetFixedOrientationLetterboxAspectRatio() 701 mLetterboxConfiguration.setDefaultMinAspectRatioForUnresizableApps(aspectRatio); in runSetDefaultMinAspectRatioForUnresizableApps() 720 mLetterboxConfiguration.setLetterboxActivityCornersRadius(cornersRadius); in runSetLetterboxActivityCornersRadius() 755 mLetterboxConfiguration.setLetterboxBackgroundTypeOverride(backgroundType); in runSetLetterboxBackgroundType() 773 mLetterboxConfiguration.setLetterboxBackgroundColorResourceId(colorId); in runSetLetterboxBackgroundColorResource() 790 mLetterboxConfiguration.setLetterboxBackgroundColor(color); in runSetLetterboxBackgroundColor() 812 mLetterboxConfiguration.setLetterboxBackgroundWallpaperBlurRadiusPx(radiusPx); in runSetLetterboxBackgroundWallpaperBlurRadius() 832 mLetterboxConfiguration.setLetterboxBackgroundWallpaperDarkScrimAlpha(alpha); in runSetLetterboxBackgroundWallpaperDarkScrimAlpha() [all …]
|
D | LetterboxUiController.java | 156 private final LetterboxConfiguration mLetterboxConfiguration; field in LetterboxUiController 240 mLetterboxConfiguration = wmService.mLetterboxConfiguration; in LetterboxUiController() 252 mLetterboxConfiguration::isPolicyForIgnoringRequestedOrientationEnabled); in LetterboxUiController() 261 mLetterboxConfiguration::isCompatFakeFocusEnabled); in LetterboxUiController() 264 mLetterboxConfiguration::isCameraCompatTreatmentEnabled); in LetterboxUiController() 296 mLetterboxConfiguration::isUserAppAspectRatioSettingsEnabled); in LetterboxUiController() 300 mLetterboxConfiguration::isUserAppAspectRatioFullscreenEnabled); in LetterboxUiController() 895 return mLetterboxConfiguration.isLetterboxActivityCornersRounded() in shouldLetterboxHaveRoundedCorners() 932 ? mLetterboxConfiguration.getHorizontalMultiplierForReachability(bookModeEnabled) in getHorizontalPositionMultiplier() 933 : mLetterboxConfiguration.getLetterboxHorizontalPositionMultiplier(bookModeEnabled); in getHorizontalPositionMultiplier() [all …]
|
D | DisplayRotationImmersiveAppCompatPolicy.java | 56 private final LetterboxConfiguration mLetterboxConfiguration; field in DisplayRotationImmersiveAppCompatPolicy 64 mLetterboxConfiguration = letterboxConfiguration; in DisplayRotationImmersiveAppCompatPolicy() 90 if (!mLetterboxConfiguration.isDisplayRotationImmersiveAppCompatPolicyEnabled()) { in isRotationLockEnforced()
|
D | ActivityRefresher.java | 78 mWmService.mLetterboxConfiguration in onActivityConfigurationChanging() 116 return mWmService.mLetterboxConfiguration.isCameraCompatRefreshEnabled() in shouldRefreshActivity()
|
D | DisplayRotationCompatPolicy.java | 248 return mWmService.mLetterboxConfiguration.isCameraCompatTreatmentEnabled() in isTreatmentEnabledForDisplay()
|
D | DisplayRotation.java | 329 service.mLetterboxConfiguration, this, displayContent); in initImmersiveAppCompatPolicy()
|
D | WindowManagerService.java | 1049 final LetterboxConfiguration mLetterboxConfiguration; field in WindowManagerService 1289 mLetterboxConfiguration = new LetterboxConfiguration( in WindowManagerService() 4481 || !mLetterboxConfiguration.isIgnoreOrientationRequestAllowed(); in isIgnoreOrientationRequestDisabled() 9957 return mLetterboxConfiguration.getLetterboxBackgroundColor().toArgb(); in getLetterboxBackgroundColorInArgb() 9966 mLetterboxConfiguration.getLetterboxBackgroundType(); in isLetterboxBackgroundMultiColored()
|
D | ActivityRecord.java | 2144 mTransparentPolicy = new TransparentPolicy(this, mWmService.mLetterboxConfiguration); in ActivityRecord() 8943 return mWmService.mLetterboxConfiguration.getIsEducationEnabled() in isEligibleForLetterboxEducation()
|
D | DisplayContent.java | 1237 mWmService.mLetterboxConfiguration.isCameraCompatTreatmentEnabledAtBuildTime(); in DisplayContent()
|
D | Task.java | 3452 && mWmService.mLetterboxConfiguration.isTranslucentLetterboxingEnabled()) {
|