Lines Matching defs:stack

115 /* The visual representation of a task stack view */
123 // The thresholds at which to show/hide the stack action button.
139 /** Do not update the stack and layout to the initial state. */
141 /** Update both the stack and layout to the initial state. */
195 // The stable stack bounds are the full bounds that we were measured with from RecentsView
198 // The current stack bounds are dynamic and may change as the user drags and drops
275 // Set the stack first
359 // Reset the stack state
374 // Since we always animate to the same place in (the initial state), always reset the stack
384 * Sets the stack tasks of this TaskStackView from the given TaskStack.
386 public void setTasks(TaskStack stack, boolean allowNotifyStackChanges) {
391 mStack.setTasks(getContext(), stack, allowNotifyStackChanges && isInitialized);
394 /** Returns the task stack. */
427 * @param stackTasksOnly if set, will return the front most task view in the stack (by default
429 * stack tasks)
460 /** Returns the stack algorithm for this task stack. */
465 /** Returns the grid algorithm for this task stack. */
471 * Returns the touch handler for this task stack.
499 * Computes the task transforms at the current stack scroll for all visible tasks. If a valid
500 * target stack scroll is provided (ie. is different than {@param curStackScroll}), then the
501 * visible range includes all tasks at the target stack scroll. This is useful for ensure that
509 * @param curStackScroll The current stack scroll
510 * @param targetStackScroll The stack scroll that we anticipate we are going to be scrolling to.
512 * target stack scrolls will be returned.
530 // Update the stack transforms
542 // If we have a target stack scroll and the task is not currently visible, then we
552 // For ignore tasks, only calculate the stack transform and skip the calculation of the
553 // visible stack indices
558 // For freeform tasks, only calculate the stack transform and skip the calculation of
559 // the visible stack indices
591 * includes those visible at the current stack scroll, and all at the
592 * target stack scroll.
617 // It is possible for the set of lingering TaskViews to differ from the stack if the
618 // stack was updated before the relayout. If the task view is no longer in the stack,
647 // Skip the invisible non-freeform stack tasks
706 * {@link TaskView}s will match the set of visible tasks in the stack. If a {@link Task} has
741 * Posts an update to synchronize the {@link TaskView}s with the stack on the next frame.
763 * Returns the current task transforms of all tasks, falling back to the stack layout if there
786 * Returns the task transforms for all the tasks in the stack if the stack was at the given
867 // Map the stack view space coordinate (the rects) to view space
904 * Updates the stack layout to its stable places.
923 * @return whether or not the stack will scroll as a part of this focus change
933 * @return whether or not the stack will scroll as a part of this focus change
1001 * @param forward whether to go to the next task in the stack (along the curve) or the previous
1002 * @param stackTasksOnly if set, will ensure that the traversal only goes along stack tasks, and
1003 * if the currently focused task is not a stack task, will set the focus
1004 * to the first visible stack task
1015 * @param forward whether to go to the next task in the stack (along the curve) or the previous
1016 * @param stackTasksOnly if set, will ensure that the traversal only goes along stack tasks, and
1017 * if the currently focused task is not a stack task, will set the focus
1018 * to the first visible stack task
1033 // Try and focus the front most stack task
1039 // Try the next task if it is a stack task
1065 // stack scroll.
1067 // Walk backwards and focus the next task smaller than the current stack scroll
1075 // Walk forwards and focus the next task larger than the current stack scroll
1259 * This is called with the full window width and height to allow stack view children to
1268 // Update the stable stack bounds, but only update the current stack bounds if the stable
1270 // our current stack bounds reflect the target drop region.
1281 // Compute the rects in the stack algorithm
1288 // If this is the first layout, then scroll to the front of the stack, then update the
1289 // TaskViews with the stack so that we can lay them out
1419 // 1. Recents is showing task views in stack layout.
1500 public void onStackTaskAdded(TaskStack stack, Task newTask) {
1514 public void onStackTaskRemoved(TaskStack stack, Task removedTask, Task newFrontMostTask,
1557 public void onStackTasksRemoved(TaskStack stack) {
1577 public void onStackTasksUpdated(TaskStack stack) {
1631 // Find the index where this task should be placed in the stack
1770 // In grid layout, the stack action button always remains visible.
1773 // Show stack button when user drags down to show older tasks on low ram devices
1810 // Otherwise, remove the task from the stack immediately
1861 // If the launch task is in the pinned stack, then expand the PiP now
1965 // Remove the task from the stack
2031 // Animate to the front of the stack
2059 // Calculate the new task stack bounds that matches the window size that Recents will
2078 // Restore the pre-drag task stack bounds, but ensure that we don't layout the dragging
2090 // However, we do need to reset the overrides, since the last state of this task stack
2102 // Move the task to the right position in the stack (ie. the front of the stack if
2103 // freeform or the front of the stack if fullscreen). Note, we MUST move the tasks
2104 // before we update their stack ids, otherwise, the keys will have changed.
2112 // Move the task to the new stack in the system after the animation completes
2139 // Restore the pre-drag task stack bounds, including the dragging task view
2220 setTasks(event.stack, true /* allowNotifyStackChanges */);
2232 // Scroll the stack to the front to see the undocked task
2233 mAnimationHelper.startNewStackScrollAnimation(event.stack,
2246 // Always stop the scroller, otherwise, we may continue setting the stack scroll to the
2300 // If an activity enters PiP while Recents is open, remove the stack task associated with
2345 * @param taskIndex the index of the task in the stack