Searched refs:enforceDeviceRestrictions (Results 1 – 4 of 4) sorted by relevance
137 public static boolean enforceDeviceRestrictions() { in enforceDeviceRestrictions() method in DesktopModeStatus160 return (!enforceDeviceRestrictions() || isDesktopModeSupported(context)) && isEnabled(); in canEnterDesktopMode()
204 static boolean enforceDeviceRestrictions() { in enforceDeviceRestrictions() method in DesktopModeLaunchParamsModifier222 && (!enforceDeviceRestrictions() || isDesktopModeSupported(context)); in canEnterDesktopMode()
431 boolean enforceDeviceRestrictions) { in setupDesktopModeLaunchParamsModifier() argument434 doReturn(enforceDeviceRestrictions) in setupDesktopModeLaunchParamsModifier()435 .when(DesktopModeLaunchParamsModifier::enforceDeviceRestrictions); in setupDesktopModeLaunchParamsModifier()
460 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()