Home
last modified time | relevance | path

Searched refs:DesktopModeStatus (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/freeform/
DFreeformTaskListener.java32 import com.android.wm.shell.shared.DesktopModeStatus;
77 if (DesktopModeStatus.canEnterDesktopMode(mContext)) { in onInit()
99 if (DesktopModeStatus.canEnterDesktopMode(mContext)) { in onTaskAppeared()
121 if (DesktopModeStatus.canEnterDesktopMode(mContext)) { in onTaskVanished()
146 if (DesktopModeStatus.canEnterDesktopMode(mContext)) { in onTaskInfoChanged()
168 if (DesktopModeStatus.canEnterDesktopMode(mContext) && taskInfo.isFocused) { in onFocusTaskChanged()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/freeform/
DFreeformTaskListenerTests.java39 import com.android.wm.shell.shared.DesktopModeStatus;
75 .strictness(Strictness.LENIENT).mockStatic(DesktopModeStatus.class).startMocking(); in setup()
76 doReturn(true).when(() -> DesktopModeStatus.canEnterDesktopMode(any())); in setup()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
DDesktopModeWindowDecorViewModelTests.kt71 import com.android.wm.shell.shared.DesktopModeStatus
456 .spyStatic(DesktopModeStatus::class.java) in testWindowDecor_desktopModeUnsupportedOnDevice_decorNotCreated()
460 whenever(DesktopModeStatus.enforceDeviceRestrictions()).thenReturn(true) in testWindowDecor_desktopModeUnsupportedOnDevice_decorNotCreated()
464 doReturn(false).`when` { DesktopModeStatus.isDesktopModeSupported(any()) } in testWindowDecor_desktopModeUnsupportedOnDevice_decorNotCreated()
479 .spyStatic(DesktopModeStatus::class.java) in testWindowDecor_desktopModeUnsupportedOnDevice_deviceRestrictionsOverridden_decorCreated()
483 whenever(DesktopModeStatus.enforceDeviceRestrictions()).thenReturn(false) in testWindowDecor_desktopModeUnsupportedOnDevice_deviceRestrictionsOverridden_decorCreated()
485 doReturn(false).`when` { DesktopModeStatus.isDesktopModeSupported(any()) } in testWindowDecor_desktopModeUnsupportedOnDevice_deviceRestrictionsOverridden_decorCreated()
503 .spyStatic(DesktopModeStatus::class.java) in testWindowDecor_deviceSupportsDesktopMode_decorCreated()
507 whenever(DesktopModeStatus.enforceDeviceRestrictions()).thenReturn(true) in testWindowDecor_deviceSupportsDesktopMode_decorCreated()
510 doReturn(true).`when` { DesktopModeStatus.isDesktopModeSupported(any()) } in testWindowDecor_deviceSupportsDesktopMode_decorCreated()
DDesktopModeWindowDecorationTests.java77 import com.android.wm.shell.shared.DesktopModeStatus;
160 .spyStatic(DesktopModeStatus.class) in setUp()
162 when(DesktopModeStatus.useDesktopOverrideDensity()).thenReturn(false); in setUp()
251 when(DesktopModeStatus.useDesktopOverrideDensity()).thenReturn(true); in updateRelayoutParams_appHeader_usesSystemDensity()
DDragPositioningCallbackUtilityTest.kt32 import com.android.wm.shell.shared.DesktopModeStatus in <lambda>()
241 whenever(DesktopModeStatus.canEnterDesktopMode(mockContext)).thenReturn(true) in <lambda>()
264 whenever(DesktopModeStatus.canEnterDesktopMode(mockContext)).thenReturn(true) in <lambda>()
DWindowDecorationTests.java78 import com.android.wm.shell.shared.DesktopModeStatus;
508 DesktopModeStatus.class).strictness( in testRelayout_fluidResizeEnabled_freeformTask_setTaskSurfaceColor()
510 when(DesktopModeStatus.isVeiledResizeEnabled()).thenReturn(false); in testRelayout_fluidResizeEnabled_freeformTask_setTaskSurfaceColor()
576 DesktopModeStatus.class).strictness(LENIENT).startMocking(); in testRelayout_fluidResizeEnabled_fullscreenTask_clearTaskSurfaceColor()
577 when(DesktopModeStatus.isVeiledResizeEnabled()).thenReturn(false); in testRelayout_fluidResizeEnabled_fullscreenTask_clearTaskSurfaceColor()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/
DDesktopTasksTransitionObserver.kt26 import com.android.wm.shell.shared.DesktopModeStatus in <lambda>()
46 DesktopModeStatus.canEnterDesktopMode(context)) { in <lambda>()
DDesktopTasksLimiter.kt28 import com.android.wm.shell.shared.DesktopModeStatus in <lambda>()
168 fun getMaxTaskLimit(): Int = DesktopModeStatus.getMaxTaskLimit() in <lambda>()
DDesktopModeLoggerTransitionObserver.kt49 import com.android.wm.shell.shared.DesktopModeStatus in <lambda>()
71 Transitions.ENABLE_SHELL_TRANSITIONS && DesktopModeStatus.canEnterDesktopMode(context) in <lambda>()
DDesktopTasksController.kt76 import com.android.wm.shell.shared.DesktopModeStatus in <lambda>()
77 import com.android.wm.shell.shared.DesktopModeStatus.DESKTOP_DENSITY_OVERRIDE in <lambda>()
78 import com.android.wm.shell.shared.DesktopModeStatus.useDesktopOverrideDensity in <lambda>()
182 if (DesktopModeStatus.canEnterDesktopMode(context)) { in <lambda>()
941 if (!DesktopModeStatus.useRoundedCorners()) { in <lambda>()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/
DDesktopTasksLimiterTest.kt35 import com.android.wm.shell.shared.DesktopModeStatus
74 .spyStatic(DesktopModeStatus::class.java).startMocking() in setUp()
75 doReturn(true).`when`{ DesktopModeStatus.canEnterDesktopMode(any()) } in setUp()
93 DesktopModeStatus.DEFAULT_MAX_TASK_LIMIT) in getMaxTaskLimit_isSameAsConstant()
DDesktopModeLoggerTransitionObserverTest.kt52 import com.android.wm.shell.shared.DesktopModeStatus
87 .mockStatic(DesktopModeStatus::class.java)
101 doReturn(true).`when` { DesktopModeStatus.canEnterDesktopMode(any()) } in setup()
DDesktopTasksControllerTest.kt90 import com.android.wm.shell.shared.DesktopModeStatus in <lambda>()
189 .spyStatic(DesktopModeStatus::class.java) in <lambda>()
191 whenever(DesktopModeStatus.isEnabled()).thenReturn(true) in <lambda>()
192 doReturn(true).`when` { DesktopModeStatus.isDesktopModeSupported(any()) } in <lambda>()
261 whenever(DesktopModeStatus.isEnabled()).thenReturn(false) in <lambda>()
1095 whenever(DesktopModeStatus.useDesktopOverrideDensity()).thenReturn(false) in <lambda>()
1109 whenever(DesktopModeStatus.useDesktopOverrideDensity()).thenReturn(true) in <lambda>()
/frameworks/base/libs/WindowManager/Shell/shared/src/com/android/wm/shell/shared/
DDesktopModeStatus.java30 public class DesktopModeStatus { class
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DDesktopModeWindowDecorViewModel.java93 import com.android.wm.shell.shared.DesktopModeStatus;
286 if (decor != null && DesktopModeStatus.canEnterDesktopMode(mContext)) { in setSplitScreenController()
627 if (DesktopModeStatus.canEnterDesktopMode(mContext) in handleMotionEvent()
804 if (DesktopModeStatus.canEnterDesktopMode(mContext)) { in handleReceivedMotionEvent()
813 if (DesktopModeStatus.canEnterDesktopMode(mContext)) { in handleReceivedMotionEvent()
871 if (DesktopModeStatus.canEnterDesktopMode(mContext)) { in handleCaptionThroughStatusBar()
1050 return DesktopModeStatus.canEnterDesktopMode(mContext) in shouldShowWindowDecor()
1081 if (!DesktopModeStatus.isVeiledResizeEnabled()) { in createWindowDecoration()
1132 + DesktopModeStatus.canEnterDesktopMode(mContext)); in dump()
DDragPositioningCallbackUtility.java34 import com.android.wm.shell.shared.DesktopModeStatus;
219 return DesktopModeStatus.canEnterDesktopMode(context) in isSizeConstraintForDesktopModeEnabled()
DDesktopModeWindowDecoration.java70 import com.android.wm.shell.shared.DesktopModeStatus;
197 final boolean shouldSetTaskPositionAndCrop = !DesktopModeStatus.isVeiledResizeEnabled() in relayout()
456 if (DesktopModeStatus.useWindowShadow(/* isFocusedWindow= */ taskInfo.isFocused)) {
475 } else if (DesktopModeStatus.useDesktopOverrideDensity()) {
484 if (DesktopModeStatus.useRoundedCorners()) {
748 .setWindowingButtonsVisible(DesktopModeStatus.canEnterDesktopMode(mContext))
DWindowDecoration.java58 import com.android.wm.shell.shared.DesktopModeStatus;
405 if (!DesktopModeStatus.isVeiledResizeEnabled()) { in updateTaskSurface()
415 } else if (!DesktopModeStatus.isVeiledResizeEnabled()) { in updateTaskSurface()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/recents/
DRecentTasksController.java55 import com.android.wm.shell.shared.DesktopModeStatus;
364 || (DesktopModeStatus.canEnterDesktopMode(mContext) in shouldEnableRunningTasksForDesktopMode()
409 if (DesktopModeStatus.canEnterDesktopMode(mContext) in getRecentTasks()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/recents/
DRecentTasksControllerTest.java71 import com.android.wm.shell.shared.DesktopModeStatus;
133 .mockStatic(DesktopModeStatus.class).startMocking(); in setUp()
135 .when(() -> DesktopModeStatus.canEnterDesktopMode(any())); in setUp()
374 .when(() -> DesktopModeStatus.canEnterDesktopMode(any())); in testGetRecentTasks_hasActiveDesktopTasks_proto2Disabled_doNotGroupFreeformTasks()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/dagger/
DWMShellModule.java79 import com.android.wm.shell.shared.DesktopModeStatus;
224 if (DesktopModeStatus.canEnterDesktopMode(context)) { in provideWindowDecorViewModel()
544 if (!DesktopModeStatus.canEnterDesktopMode(context) in provideDesktopTasksLimiter()
DWMShellBaseModule.java91 import com.android.wm.shell.shared.DesktopModeStatus;
902 if (DesktopModeStatus.canEnterDesktopMode(context)) { in providesDesktopTasksController()
921 if (DesktopModeStatus.canEnterDesktopMode(context)) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
DOverviewProxyService.java115 import com.android.wm.shell.shared.DesktopModeStatus;
711 if (DesktopModeStatus.canEnterDesktopMode(mContext) in OverviewProxyService()