Lines Matching defs:tasks
120 // The medium/maximum dim on the tasks
221 VisibilityReport(int tasks, int thumbnails) {
222 numVisibleTasks = tasks;
287 // The paths defining the motion of the tasks when the stack is focused and unfocused
293 // The paths defining the distribution of the dim to apply to tasks in the stack when focused
487 // Return early if we have no tasks
488 ArrayList<Task> tasks = stack.getStackTasks();
489 if (tasks.isEmpty()) {
496 // Filter the set of freeform and stack tasks
499 for (int i = 0; i < tasks.size(); i++) {
500 Task task = tasks.get(i);
513 // Put each of the tasks in the progress map at a fixed index (does not need to actually
521 // Update the freeform tasks
592 // For small stacks, position the tasks so that they are top aligned to under
607 List<Task> tasks = stack.getStackTasks();
608 int taskCount = tasks.size();
616 mTaskIndexOverrideMap.put(tasks.get(i).key.id, newTaskProgress);
751 * Computes the maximum number of visible tasks and thumbnails when the scroll is at the initial
754 public VisibilityReport computeStackVisibilityReport(ArrayList<Task> tasks) {
756 if (tasks.size() <= 1) {
760 // Quick return when there are no stack tasks
766 // Otherwise, walk backwards in the stack and count the number of tasks and visible
776 for (int i = tasks.size() - 1; i >= 0; i--) {
777 Task task = tasks.get(i);
806 taskProgress = getStackScrollForTask(tasks.get(j));