Home
last modified time | relevance | path

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

/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/freeform/
H A DFreeformTaskListener.java27 import com.android.wm.shell.desktopmode.DesktopModeStatus;
71 if (DesktopModeStatus.isAnyEnabled()) { in onInit()
93 if (DesktopModeStatus.isAnyEnabled()) { in onTaskAppeared()
114 if (DesktopModeStatus.isAnyEnabled()) { in onTaskVanished()
138 if (DesktopModeStatus.isAnyEnabled()) { in onTaskInfoChanged()
157 if (DesktopModeStatus.isAnyEnabled() && taskInfo.isFocused) { in onFocusTaskChanged()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
H A DDesktopModeWindowDecorViewModel.java72 import com.android.wm.shell.desktopmode.DesktopModeStatus;
391 if (DesktopModeStatus.IS_DISPLAY_CHANGE_ENABLED) { in onClick()
430 if (DesktopModeStatus.isProto2Enabled() in handleMotionEvent()
588 if (DesktopModeStatus.isProto2Enabled()) { in handleReceivedMotionEvent()
597 if (DesktopModeStatus.isProto2Enabled()) { in handleReceivedMotionEvent()
601 } else if (DesktopModeStatus.isProto1Enabled()) { in handleReceivedMotionEvent()
637 if (DesktopModeStatus.isProto2Enabled()) { in handleCaptionThroughStatusBar()
662 if (DesktopModeStatus.isProto2Enabled()) { in handleCaptionThroughStatusBar()
664 } else if (DesktopModeStatus.isProto1Enabled()) { in handleCaptionThroughStatusBar()
856 return DesktopModeStatus.isProto2Enabled() in shouldShowWindowDecor()
[all …]
H A DDesktopModeWindowDecoration.java47 import com.android.wm.shell.desktopmode.DesktopModeStatus;
348 .setWindowingButtonsVisible(DesktopModeStatus.isProto2Enabled()) in createHandleMenu()
469 if (DesktopModeStatus.isProto1Enabled()) { in getDesktopModeWindowDecorLayoutId()
H A DHandleMenu.java42 import com.android.wm.shell.desktopmode.DesktopModeStatus;
239 final boolean shouldShowWindowingPill = DesktopModeStatus.isProto2Enabled(); in relayout()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/recents/
H A DRecentTasksControllerTest.java60 import com.android.wm.shell.desktopmode.DesktopModeStatus;
258 DesktopModeStatus.class).startMocking(); in testGetRecentTasks_hasActiveDesktopTasks_proto2Enabled_groupFreeformTasks()
259 when(DesktopModeStatus.isProto2Enabled()).thenReturn(true); in testGetRecentTasks_hasActiveDesktopTasks_proto2Enabled_groupFreeformTasks()
298 DesktopModeStatus.class).startMocking(); in testGetRecentTasks_hasActiveDesktopTasks_proto2Disabled_doNotGroupFreeformTasks()
299 when(DesktopModeStatus.isProto2Enabled()).thenReturn(false); in testGetRecentTasks_hasActiveDesktopTasks_proto2Disabled_doNotGroupFreeformTasks()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/
H A DDesktopTasksControllerTest.kt109 mockitoSession = mockitoSession().mockStatic(DesktopModeStatus::class.java).startMocking()
110 whenever(DesktopModeStatus.isProto2Enabled()).thenReturn(true)
157 whenever(DesktopModeStatus.isProto2Enabled()).thenReturn(false)
503 whenever(DesktopModeStatus.isStashingEnabled()).thenReturn(true)
575 whenever(DesktopModeStatus.isStashingEnabled()).thenReturn(true)
633 whenever(DesktopModeStatus.isStashingEnabled()).thenReturn(true)
643 whenever(DesktopModeStatus.isStashingEnabled()).thenReturn(true)
H A DDesktopModeControllerTest.java108 mMockitoSession = mockitoSession().mockStatic(DesktopModeStatus.class).startMocking(); in setUp()
109 when(DesktopModeStatus.isProto1Enabled()).thenReturn(true); in setUp()
110 when(DesktopModeStatus.isActive(any())).thenReturn(true); in setUp()
138 when(DesktopModeStatus.isProto1Enabled()).thenReturn(false); in instantiate_flagOff_doNotAddInitCallback()
432 when(DesktopModeStatus.isActive(any())).thenReturn(false); in testHandleTransitionRequest_desktopModeNotActive_returnsNull()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/
H A DDesktopModeController.java109 if (DesktopModeStatus.isProto1Enabled()) { in DesktopModeController()
119 if (DesktopModeStatus.isActive(mContext)) { in onInit()
393 if (!DesktopModeStatus.isActive(mContext)) { in handleRequest()
466 boolean enabled = DesktopModeStatus.isActive(mContext); in desktopModeSettingChanged()
H A DDesktopModeStatus.java31 public class DesktopModeStatus { class
H A DDesktopTasksController.kt123 if (DesktopModeStatus.isProto2Enabled()) {
166 if (DesktopModeStatus.isStashingEnabled()) {
176 if (DesktopModeStatus.isStashingEnabled()) {
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/dagger/
H A DWMShellBaseModule.java75 import com.android.wm.shell.desktopmode.DesktopModeStatus;
794 if (DesktopModeStatus.isProto2Enabled()) { in provideDesktopMode()
811 if (DesktopModeStatus.isProto1Enabled()) { in provideDesktopModeController()
828 if (DesktopModeStatus.isProto2Enabled()) { in providesDesktopTasksController()
845 if (DesktopModeStatus.isAnyEnabled()) { in provideDesktopTaskRepository()
H A DWMShellModule.java57 import com.android.wm.shell.desktopmode.DesktopModeStatus;
197 if (DesktopModeStatus.isAnyEnabled()) { in provideWindowDecorViewModel()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/recents/
H A DRecentTasksController.java54 import com.android.wm.shell.desktopmode.DesktopModeStatus;
332 if (DesktopModeStatus.isProto2Enabled() && mDesktopModeTaskRepository.isPresent() in getRecentTasks()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/
H A DDefaultMixedHandler.java47 import com.android.wm.shell.desktopmode.DesktopModeStatus;
260 || DesktopModeStatus.isActive(mPlayer.getContext()))) { in handleRecentsRequest()
275 } else if (DesktopModeStatus.isActive(mPlayer.getContext())) { in setRecentsTransition()