Home
last modified time | relevance | path

Searched refs:mLetterboxConfiguration (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLetterboxConfigurationTest.java65 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 …]
DLetterboxUiControllerTest.java139 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 …]
DActivityRefresherTests.java56 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()
DCameraStateMonitorTests.java63 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()
DCameraCompatFreeformPolicyTests.java92 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()
DDisplayRotationCompatPolicyTests.java93 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 …]
DSizeCompatTests.java229 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 …]
DTransparentPolicyTest.java245 activity.mWmService.mLetterboxConfiguration in testTranslucentActivitiesWhenUnfolding()
287 spyOn(mWm.mLetterboxConfiguration); in runTestScenario()
288 when(mWm.mLetterboxConfiguration.isTranslucentLetterboxingEnabled()) in runTestScenario()
DWindowTestsBase.java265 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()
DTaskTests.java614 spyOn(mWm.mLetterboxConfiguration); in testTopActivityEligibleForUserAspectRatioButton()
656 spyOn(mWm.mLetterboxConfiguration); in testIsTopActivityTranslucent()
DDisplayContentTests.java2567 mWm.mLetterboxConfiguration.getFixedOrientationLetterboxAspectRatio(), in testCreateTestDisplayContentFromDimensions()
2610 mWm.mLetterboxConfiguration.getFixedOrientationLetterboxAspectRatio(), in testCreateTestDisplayContentFromDisplayInfo()
DWindowManagerServiceTests.java1533 mWm.mLetterboxConfiguration.setLetterboxBackgroundTypeOverride(letterboxBackgroundType); in setupLetterboxConfigurationWithBackgroundType()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerShellCommand.java81 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 …]
DLetterboxUiController.java156 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 …]
DDisplayRotationImmersiveAppCompatPolicy.java56 private final LetterboxConfiguration mLetterboxConfiguration; field in DisplayRotationImmersiveAppCompatPolicy
64 mLetterboxConfiguration = letterboxConfiguration; in DisplayRotationImmersiveAppCompatPolicy()
90 if (!mLetterboxConfiguration.isDisplayRotationImmersiveAppCompatPolicyEnabled()) { in isRotationLockEnforced()
DActivityRefresher.java78 mWmService.mLetterboxConfiguration in onActivityConfigurationChanging()
116 return mWmService.mLetterboxConfiguration.isCameraCompatRefreshEnabled() in shouldRefreshActivity()
DDisplayRotationCompatPolicy.java248 return mWmService.mLetterboxConfiguration.isCameraCompatTreatmentEnabled() in isTreatmentEnabledForDisplay()
DDisplayRotation.java329 service.mLetterboxConfiguration, this, displayContent); in initImmersiveAppCompatPolicy()
DWindowManagerService.java1049 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()
DActivityRecord.java2144 mTransparentPolicy = new TransparentPolicy(this, mWmService.mLetterboxConfiguration); in ActivityRecord()
8943 return mWmService.mLetterboxConfiguration.getIsEducationEnabled() in isEligibleForLetterboxEducation()
DDisplayContent.java1237 mWmService.mLetterboxConfiguration.isCameraCompatTreatmentEnabledAtBuildTime(); in DisplayContent()
DTask.java3452 && mWmService.mLetterboxConfiguration.isTranslucentLetterboxingEnabled()) {