Home
last modified time | relevance | path

Searched refs:numTasks (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DRunningTasksTest.java72 final int numTasks = 10; in testCollectTasksByLastActiveTime() local
74 for (int i = 0; i < numTasks; i++) { in testCollectTasksByLastActiveTime()
87 assertEquals(numTasks - i - 1, tasks.get(i).id); in testCollectTasksByLastActiveTime()
96 assertThat(tasks).hasSize(numTasks); in testCollectTasksByLastActiveTime()
97 for (int i = 0; i < numTasks; i++) { in testCollectTasksByLastActiveTime()
98 assertEquals(numTasks - i - 1, tasks.get(i).id); in testCollectTasksByLastActiveTime()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/lowram/
DTaskStackLowRamLayoutAlgorithm.java150 public float getClosestTaskP(float scrollP, int numTasks, int velocity) { in getClosestTaskP() argument
154 for (int i = 1; i < numTasks; i++) { in getClosestTaskP()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DActivityManagerWrapper.java134 public List<RecentTaskInfo> getRecentTasks(int numTasks, int userId) { in getRecentTasks() argument
136 return ActivityTaskManager.getService().getRecentTasks(numTasks, in getRecentTasks()
/frameworks/base/services/core/java/com/android/server/wm/
DRootActivityContainer.java1292 final int numTasks = tasks.size(); in getStackInfo() local
1293 int[] taskIds = new int[numTasks]; in getStackInfo()
1294 String[] taskNames = new String[numTasks]; in getStackInfo()
1295 Rect[] taskBounds = new Rect[numTasks]; in getStackInfo()
1296 int[] taskUserIds = new int[numTasks]; in getStackInfo()
1297 for (int i = 0; i < numTasks; ++i) { in getStackInfo()
DActivityStack.java4894 final int numTasks = mTaskHistory.size(); in moveTaskToFrontLocked() local
4896 if (numTasks == 0 || index < 0) { in moveTaskToFrontLocked()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DTaskStackView.java2215 private int getInitialFocusTaskIndex(RecentsActivityLaunchState launchState, int numTasks, in getInitialFocusTaskIndex() argument
2220 return numTasks - 1; in getInitialFocusTaskIndex()
2224 return Math.max(0, numTasks - 2); in getInitialFocusTaskIndex()
2227 return numTasks - 1; in getInitialFocusTaskIndex()