Home
last modified time | relevance | path

Searched refs:enforceDeviceRestrictions (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/libs/WindowManager/Shell/shared/src/com/android/wm/shell/shared/
DDesktopModeStatus.java137 public static boolean enforceDeviceRestrictions() { in enforceDeviceRestrictions() method in DesktopModeStatus
160 return (!enforceDeviceRestrictions() || isDesktopModeSupported(context)) && isEnabled(); in canEnterDesktopMode()
/frameworks/base/services/core/java/com/android/server/wm/
DDesktopModeLaunchParamsModifier.java204 static boolean enforceDeviceRestrictions() { in enforceDeviceRestrictions() method in DesktopModeLaunchParamsModifier
222 && (!enforceDeviceRestrictions() || isDesktopModeSupported(context)); in canEnterDesktopMode()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDesktopModeLaunchParamsModifierTests.java431 boolean enforceDeviceRestrictions) { in setupDesktopModeLaunchParamsModifier() argument
434 doReturn(enforceDeviceRestrictions) in setupDesktopModeLaunchParamsModifier()
435 .when(DesktopModeLaunchParamsModifier::enforceDeviceRestrictions); in setupDesktopModeLaunchParamsModifier()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
DDesktopModeWindowDecorViewModelTests.kt460 whenever(DesktopModeStatus.enforceDeviceRestrictions()).thenReturn(true) in testWindowDecor_desktopModeUnsupportedOnDevice_decorNotCreated()
483 whenever(DesktopModeStatus.enforceDeviceRestrictions()).thenReturn(false) in testWindowDecor_desktopModeUnsupportedOnDevice_deviceRestrictionsOverridden_decorCreated()
507 whenever(DesktopModeStatus.enforceDeviceRestrictions()).thenReturn(true) in testWindowDecor_deviceSupportsDesktopMode_decorCreated()