Searched refs:numTasks (Results 1 – 6 of 6) sorted by relevance
81 final int numTasks = 10; in testCollectTasksByLastActiveTime() local83 for (int i = 0; i < numTasks; i++) { in testCollectTasksByLastActiveTime()95 assertTrue(tasks.get(i).id == (numTasks - i - 1)); in testCollectTasksByLastActiveTime()103 assertTrue(tasks.size() == numTasks); in testCollectTasksByLastActiveTime()104 for (int i = 0; i < numTasks; i++) { in testCollectTasksByLastActiveTime()105 assertTrue(tasks.get(i).id == (numTasks - i - 1)); in testCollectTasksByLastActiveTime()
150 public float getClosestTaskP(float scrollP, int numTasks, int velocity) { in getClosestTaskP() argument154 for (int i = 1; i < numTasks; i++) { in getClosestTaskP()
130 public List<RecentTaskInfo> getRecentTasks(int numTasks, int userId) { in getRecentTasks() argument132 return ActivityManager.getService().getRecentTasks(numTasks, in getRecentTasks()
2213 private int getInitialFocusTaskIndex(RecentsActivityLaunchState launchState, int numTasks, in getInitialFocusTaskIndex() argument2218 return numTasks - 1; in getInitialFocusTaskIndex()2222 return Math.max(0, numTasks - 2); in getInitialFocusTaskIndex()2225 return numTasks - 1; in getInitialFocusTaskIndex()
4423 final int numTasks = tasks.size(); in getStackInfo() local4424 int[] taskIds = new int[numTasks]; in getStackInfo()4425 String[] taskNames = new String[numTasks]; in getStackInfo()4426 Rect[] taskBounds = new Rect[numTasks]; in getStackInfo()4427 int[] taskUserIds = new int[numTasks]; in getStackInfo()4428 for (int i = 0; i < numTasks; ++i) { in getStackInfo()
2784 final int numTasks = mTaskHistory.size(); in getNextTask() local2785 for (int i = index + 1; i < numTasks; ++i) { in getNextTask()4565 final int numTasks = mTaskHistory.size(); in moveTaskToFrontLocked() local4567 if (numTasks == 0 || index < 0) { in moveTaskToFrontLocked()