Home
last modified time | relevance | path

Searched refs:recentTasks (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/recents/
DRecentTasksControllerTest.java226 ArrayList<GroupedRecentTaskInfo> recentTasks = mRecentTasksController.getRecentTasks( in testGetRecentTasks() local
228 assertGroupedTasksListEquals(recentTasks, in testGetRecentTasks()
253 ArrayList<GroupedRecentTaskInfo> recentTasks = mRecentTasksController.getRecentTasks( in testGetRecentTasks_withPairs() local
255 assertGroupedTasksListEquals(recentTasks, in testGetRecentTasks_withPairs()
265 final List<GroupedRecentTaskInfo>[] recentTasks = new List[1]; in testGetRecentTasks_ReturnsRecentTasksAsynchronously() local
266 Consumer<List<GroupedRecentTaskInfo>> consumer = argument -> recentTasks[0] = argument; in testGetRecentTasks_ReturnsRecentTasksAsynchronously()
288 assertGroupedTasksListEquals(recentTasks[0], in testGetRecentTasks_ReturnsRecentTasksAsynchronously()
306 ArrayList<GroupedRecentTaskInfo> recentTasks = mRecentTasksController.getRecentTasks( in testGetRecentTasks_hasActiveDesktopTasks_proto2Enabled_groupFreeformTasks() local
310 assertEquals(3, recentTasks.size()); in testGetRecentTasks_hasActiveDesktopTasks_proto2Enabled_groupFreeformTasks()
311 GroupedRecentTaskInfo freeformGroup = recentTasks.get(0); in testGetRecentTasks_hasActiveDesktopTasks_proto2Enabled_groupFreeformTasks()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/recents/
DRecentTasksController.java401 ArrayList<GroupedRecentTaskInfo> recentTasks = new ArrayList<>(); in getRecentTasks() local
418 mostRecentFreeformTaskIndex = recentTasks.size(); in getRecentTasks()
429 recentTasks.add(GroupedRecentTaskInfo.forSplitTasks(taskInfo, pairedTaskInfo, in getRecentTasks()
432 recentTasks.add(GroupedRecentTaskInfo.forSingleTask(taskInfo)); in getRecentTasks()
438 recentTasks.add(mostRecentFreeformTaskIndex, GroupedRecentTaskInfo.forFreeformTasks( in getRecentTasks()
442 return recentTasks; in getRecentTasks()
504 ArrayList<GroupedRecentTaskInfo> recentTasks = getRecentTasks(Integer.MAX_VALUE, in dump() local
506 for (int i = 0; i < recentTasks.size(); i++) { in dump()
507 pw.println(innerPrefix + recentTasks.get(i)); in dump()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/tv/
DTvSplitScreenController.java81 Optional<RecentTasksController> recentTasks, in TvSplitScreenController() argument
90 iconProvider, recentTasks, launchAdjacentController, Optional.empty(), in TvSplitScreenController()
103 mRecentTasksOptional = recentTasks; in TvSplitScreenController()
DTvStageCoordinator.java54 Optional<RecentTasksController> recentTasks, in TvStageCoordinator() argument
59 mainExecutor, recentTasks, launchAdjacentController, Optional.empty()); in TvStageCoordinator()
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/view/
DMediaProjectionRecentsViewController.kt81 fun bind(recentTasks: List<RecentTask>) { in <lambda>()
83 if (recentTasks.isEmpty()) { in <lambda>()
94 recentTasks, in <lambda>()
99 lastBoundData = recentTasks in <lambda>()
/frameworks/base/services/core/java/com/android/server/ambientcontext/
DAmbientContextManagerPerUserService.java182 ParceledListSlice<ActivityManager.RecentTaskInfo> recentTasks; in onStartConsentActivity() local
185 recentTasks = ActivityTaskManager.getService().getRecentTasks(/*maxNum*/1, in onStartConsentActivity()
192 if ((recentTasks == null) || recentTasks.getList().isEmpty()) { in onStartConsentActivity()
197 task = recentTasks.getList().get(0); in onStartConsentActivity()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/
DShellTaskOrganizer.java216 Optional<RecentTasksController> recentTasks, in ShellTaskOrganizer() argument
219 unfoldAnimationController, recentTasks, mainExecutor); in ShellTaskOrganizer()
228 Optional<RecentTasksController> recentTasks, in ShellTaskOrganizer() argument
233 mRecentTasks = recentTasks; in ShellTaskOrganizer()
517 mRecentTasks.ifPresent(recentTasks -> recentTasks.onTaskAdded(info.getTaskInfo())); in onTaskAppeared()
560 mRecentTasks.ifPresent(recentTasks -> in onTaskInfoChanged()
561 recentTasks.onTaskRunningInfoChanged(taskInfo)); in onTaskInfoChanged()
610 mRecentTasks.ifPresent(recentTasks -> recentTasks.onTaskRemoved(taskInfo)); in onTaskVanished()
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/
DMediaProjectionAppSelectorController.kt60 val recentTasks = recentTaskListProvider.loadRecentTasks() in <lambda>() constant
63 recentTasks.filterDevicePolicyRestrictedTasks().filterAppSelector().sortedTasks() in <lambda>()
DMediaProjectionAppSelectorView.kt22 fun bind(recentTasks: List<RecentTask>)
DMediaProjectionAppSelectorActivity.kt226 override fun bind(recentTasks: List<RecentTask>) { in bind()
227 recentsViewController.bind(recentTasks) in bind()
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/data/
DRecentTaskListProvider.kt45 private val recentTasks: Optional<RecentTasks>, constant in com.android.systemui.mediaprojection.appselector.data.ShellRecentTaskListProvider
50 private val recents by lazy { recentTasks.getOrNull() } in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/wmshell/
DWMShell.java185 Optional<RecentTasks> recentTasks, in WMShell() argument
211 mRecentTasksOptional = recentTasks; in WMShell()
400 void initRecentTasks(RecentTasks recentTasks) { in initRecentTasks() argument
401 recentTasks.addAnimationStateListener(mSysUiMainExecutor, in initRecentTasks()
404 recentTasks::setTransitionBackgroundColor); in initRecentTasks()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/splitscreen/
DSplitTestUtils.java81 Optional<RecentTasksController> recentTasks, in TestStageCoordinator() argument
86 transitions, transactionPool, mainExecutor, recentTasks, in TestStageCoordinator()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/dagger/
DTvWMShellModule.java89 Optional<RecentTasksController> recentTasks, in provideSplitScreenController() argument
98 iconProvider, recentTasks, launchAdjacentController, multiInstanceHelper, in provideSplitScreenController()
DWMShellModule.java358 Optional<RecentTasksController> recentTasks, in provideSplitScreenController() argument
367 transactionPool, iconProvider, recentTasks, launchAdjacentController, in provideSplitScreenController()
/frameworks/base/services/core/java/com/android/server/wm/
DRunningTasks.java58 void getTasks(int maxNum, List<RunningTaskInfo> list, int flags, RecentTasks recentTasks, in getTasks() argument
72 mRecentTasks = recentTasks; in getTasks()
DTaskPersister.java89 ActivityTaskManagerService service, RecentTasks recentTasks, in TaskPersister() argument
109 mRecentTasks = recentTasks; in TaskPersister()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityStarterTests.java746 RecentTasks recentTasks = mock(RecentTasks.class); in testPinnedSingleInstanceAborted() local
747 mAtm.mTaskSupervisor.setRecentTasks(recentTasks); in testPinnedSingleInstanceAborted()
748 doReturn(false).when(recentTasks).isCallerRecents(UNIMPORTANT_UID); in testPinnedSingleInstanceAborted()
1029 RecentTasks recentTasks = mock(RecentTasks.class); in testFreezeTaskListActivityOption() local
1030 mAtm.mTaskSupervisor.setRecentTasks(recentTasks); in testFreezeTaskListActivityOption()
1031 doReturn(true).when(recentTasks).isCallerRecents(anyInt()); in testFreezeTaskListActivityOption()
1041 verify(recentTasks, times(1)).setFreezeTaskListReordering(); in testFreezeTaskListActivityOption()
1042 verify(recentTasks, times(0)).resetFreezeTaskListReorderingOnTimeout(); in testFreezeTaskListActivityOption()
1051 RecentTasks recentTasks = mock(RecentTasks.class); in testFreezeTaskListActivityOptionFailedStart_expectResetFreezeTaskList() local
1052 mAtm.mTaskSupervisor.setRecentTasks(recentTasks); in testFreezeTaskListActivityOptionFailedStart_expectResetFreezeTaskList()
[all …]
DRecentsAnimationTest.java86 final RecentTasks recentTasks = mAtm.getRecentTasks(); in setUp() local
87 spyOn(recentTasks); in setUp()
88 doReturn(mRecentsComponent).when(recentTasks).getRecentsComponent(); in setUp()
DBackgroundActivityStartControllerExemptionTests.java579 RecentTasks recentTasks = mock(RecentTasks.class); in testCaller_isRecents() local
580 when(recentTasks.isCallerRecents(eq(callingUid))).thenReturn(true); in testCaller_isRecents()
581 mSupervisor.mRecentTasks = recentTasks; in testCaller_isRecents()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/data/
DShellRecentTaskListProviderTest.kt36 private val recentTasks: RecentTasks = mock() constant in com.android.systemui.mediaprojection.appselector.data.ShellRecentTaskListProviderTest
45 Optional.of(recentTasks),
223 whenever(recentTasks.getRecentTasks(any(), any(), any(), any(), any())).thenAnswer { in givenRecentTasks()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/fullscreen/
DFullscreenTaskListener.java172 mRecentTasksOptional.ifPresent(recentTasks -> { in updateRecentsForVisibleFullscreenTask()
175 recentTasks.removeSplitPair(taskInfo.taskId); in updateRecentsForVisibleFullscreenTask()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/
DSplitScreenController.java223 Optional<RecentTasksController> recentTasks, in SplitScreenController() argument
245 mRecentTasksOptional = recentTasks; in SplitScreenController()
849 .map(recentTasks -> recentTasks.findTaskInBackground(component, userId1)) in startIntent()
894 .map(recentTasks -> recentTasks.getTopRunningTask()) in getPackageName()
912 .map(recentTasks -> recentTasks.getTopRunningTask()) in getUserId()
DStageCoordinator.java318 Optional<RecentTasksController> recentTasks, in StageCoordinator() argument
327 mRecentTasks = recentTasks; in StageCoordinator()
378 Optional<RecentTasksController> recentTasks, in StageCoordinator() argument
396 mRecentTasks = recentTasks; in StageCoordinator()
1735 mRecentTasks.ifPresent(recentTasks -> { in clearSplitPairedInRecents()
1738 mMainStage.doForAllChildTasks(taskId -> recentTasks.removeSplitPair(taskId)); in clearSplitPairedInRecents()
1739 mSideStage.doForAllChildTasks(taskId -> recentTasks.removeSplitPair(taskId)); in clearSplitPairedInRecents()
1984 mRecentTasks.ifPresent(recentTasks -> { in updateRecentTasksSplitPair()
2003 boolean added = recentTasks.addSplitPair(mainStageTopTaskId, sideStageTopTaskId, in updateRecentTasksSplitPair()
2683 mRecentTasks.ifPresent(recentTasks -> recentTasks.removeSplitPair(triggerTask.taskId)); in handleRequest()
[all …]
/frameworks/base/services/core/java/com/android/server/camera/
DCameraServiceProxy.java730 ParceledListSlice<ActivityManager.RecentTaskInfo> recentTasks = null;
734 recentTasks = ActivityTaskManager.getService().getRecentTasks(/*maxNum*/2,
741 if ((recentTasks != null) && (!recentTasks.getList().isEmpty())) {
742 for (ActivityManager.RecentTaskInfo task : recentTasks.getList()) {

12