Lines Matching refs:position

514         // Calculate the current position.
523 // Snap the position to a target.
533 // Recalculate the bounds based on the position of the target.
534 DockedDividerUtils.calculateBoundsForPosition(target.position, dockSide,
540 void addTask(Task task, int position) {
541 addTask(task, position, task.showForAllUsers(), true /* moveParents */);
549 * @param position Target position to add the task to.
552 void addTask(Task task, int position, boolean showForAllUsers, boolean moveParents) {
566 // Move child to a proper position, as some restriction for position might apply.
567 positionChildAt(position, task, moveParents /* includingParents */, showForAllUsers);
571 void positionChildAt(int position, Task child, boolean includingParents) {
572 positionChildAt(position, child, includingParents, child.showForAllUsers());
580 private void positionChildAt(int position, Task child, boolean includingParents,
582 final int targetPosition = findPositionForTask(child, position, showForAllUsers,
588 Slog.d(TAG_WM, "positionTask: task=" + this + " position=" + position);
610 // Reset position based on minimum/maximum possible positions.
614 /** Calculate the minimum possible position for a task that can be shown to the user.
615 * The minimum position will be above all other tasks that can't be shown.
616 * @param minPosition The minimum position the caller is suggesting.
634 /** Calculate the maximum possible position for a task that can't be shown to the user.
635 * The maximum position will be below all other tasks that can be shown.
636 * @param maxPosition The maximum position the caller is suggesting.
829 final int position = new DividerSnapAlgorithm(mService.mContext.getResources(),
834 mTmpRect2).getMiddleTarget().position;
838 outBounds.right = position;
840 outBounds.bottom = position;
844 outBounds.left = position + dockDividerWidth;
846 outBounds.top = position + dockDividerWidth;
981 * Update the stack's bounds (crop or position) according to the IME window's
982 * current position. When IME window is animated, the bottom stack is animated
983 * together to track the IME window's current position, and the top stack is