Searched refs:numTasks (Results 1 – 6 of 6) sorted by relevance
69 final int numTasks = 10; in testCollectTasksByLastActiveTime() local71 for (int i = 0; i < numTasks; i++) { in testCollectTasksByLastActiveTime()83 assertEquals(numTasks - i - 1, tasks.get(i).id); in testCollectTasksByLastActiveTime()91 assertThat(tasks).hasSize(numTasks); in testCollectTasksByLastActiveTime()92 for (int i = 0; i < numTasks; i++) { in testCollectTasksByLastActiveTime()93 assertEquals(numTasks - i - 1, tasks.get(i).id); in testCollectTasksByLastActiveTime()
150 public float getClosestTaskP(float scrollP, int numTasks, int velocity) { in getClosestTaskP() argument154 for (int i = 1; i < numTasks; i++) { in getClosestTaskP()
132 public List<RecentTaskInfo> getRecentTasks(int numTasks, int userId) { in getRecentTasks() argument134 return ActivityTaskManager.getService().getRecentTasks(numTasks, in getRecentTasks()
1282 final int numTasks = tasks.size(); in getStackInfo() local1283 int[] taskIds = new int[numTasks]; in getStackInfo()1284 String[] taskNames = new String[numTasks]; in getStackInfo()1285 Rect[] taskBounds = new Rect[numTasks]; in getStackInfo()1286 int[] taskUserIds = new int[numTasks]; in getStackInfo()1287 for (int i = 0; i < numTasks; ++i) { in getStackInfo()
4867 final int numTasks = mTaskHistory.size(); in moveTaskToFrontLocked() local4869 if (numTasks == 0 || index < 0) { in moveTaskToFrontLocked()
2212 private int getInitialFocusTaskIndex(RecentsActivityLaunchState launchState, int numTasks, in getInitialFocusTaskIndex() argument2217 return numTasks - 1; in getInitialFocusTaskIndex()2221 return Math.max(0, numTasks - 2); in getInitialFocusTaskIndex()2224 return numTasks - 1; in getInitialFocusTaskIndex()