Lines Matching defs:stack

109  * The layout logic for a TaskStackView.  This layout needs to be able to calculate the stack layout
112 * more prominently in the stack.
150 * The various stack/freeform states.
162 * @param freeformHeightPct the percentage of the stack height (not including paddings) to
172 * Resolves the stack state for the layout given a task stack.
174 public static StackState getStackStateForStack(TaskStack stack) {
177 int freeformCount = stack.getFreeformTaskCount();
178 int stackCount = stack.getStackTaskCount();
189 * Computes the freeform and stack rect for this state.
192 * @param stackRectOut the stack rect, we only write out the top of the stack
198 // above freeform and below stack - gap between the freeform and stack
225 // A report of the visibility state of the stack
246 // The stack bounds, inset from the top system insets, and runs to the bottom of the screen
253 // The visible ranges when the stack is focused and unfocused
257 // This is the bounds of the stack action above the stack rect
260 // The base top margin for the stack from the system insets
263 // The base side margin for the stack from the system insets
266 // The base bottom margin for the stack from the system insets
271 // The gap between the freeform and stack layouts
291 // The offset from the bottom of the stack to the bottom of the bounds when the stack is
299 // The paths defining the motion of the tasks when the stack is focused and unfocused
305 // The paths defining the distribution of the dim to apply to tasks in the stack when focused
312 // The state of the stack focus (0..1), which controls the transition of the stack from the
327 // The task progress for the front-most task in the stack
352 // The transform to place TaskViews at the front and back of the stack respectively
424 * Resets this layout when the stack view is reset.
462 * Computes the stack and task rects. The given task stack bounds already has the top/right
476 // Compute the stack bounds
482 // The stack action button will take the full un-padded header space above the stack
486 // Anchor the task rect top aligned to the stack rect
497 // Short circuit here if the stack rects haven't changed so we don't do all the work below
519 * in the stack.
521 public void update(TaskStack stack, ArraySet<Task.TaskKey> ignoreTasksSet,
529 ArrayList<Task> tasks = stack.getStackTasks();
537 // Filter the set of freeform and stack tasks
568 Task launchTask = stack.getLaunchTarget();
570 ? stack.indexOfStackTask(launchTask)
586 // If there is one stack task, ignore the min/max/initial scroll positions
592 // stack bottom offset
626 * Creates task overrides to ensure the initial stack layout if necessary.
628 public void setTaskOverridesForInitialState(TaskStack stack, boolean ignoreScrollToFront) {
640 // Set the initial scroll to the predefined state (which differs from the stack)
649 // bottom of the stack
662 List<Task> tasks = stack.getStackTasks();
718 * Updates this stack when a scroll happens.
783 * Returns the TaskViewTransform that would put the task just off the back of the stack.
790 * Returns the TaskViewTransform that would put the task just off the front of the stack.
797 * Returns the current stack state.
804 * Returns whether this stack layout has been initialized.
812 * stack scroll. Requires that update() is called first.
828 // Quick return when there are no stack tasks
834 // Otherwise, walk backwards in the stack and count the number of tasks and visible
979 * position in the stack.
998 // Map the absolute task progress to the normalized x at the stack scroll. We use this to
1005 // Map the absolute task progress to the normalized x at the bounded stack scroll. We use
1014 // Map the absolute task progress to the normalized x at the upper bounded stack scroll.
1028 // When there is exactly one task, then decouple the task from the stack and just move
1040 // Otherwise, update the task to the stack layout
1093 * stack.
1105 * of the stack.
1156 * Returns the task stack bounds in the current orientation. This rect takes into account the
1171 // If we are in landscape, calculate the width of the stack in portrait and ensure that
1222 * stack height).
1234 * stack height).
1271 // ensures that we match the range, at which 0.5 represents the stack scroll at the current
1311 // task), then goes back to max dim towards the front of the stack
1335 * Updates the current transforms that would put a TaskView at the front and back of the stack.
1379 writer.print(" stack="); writer.print(Utilities.dumpRect(mStackRect));