Home
last modified time | relevance | path

Searched refs:rootTaskBounds (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/core/java/com/android/server/wm/
DWindowAnimationSpec.java62 public WindowAnimationSpec(Animation animation, Point position, Rect rootTaskBounds, in WindowAnimationSpec() argument
73 if (rootTaskBounds != null) { in WindowAnimationSpec()
74 mRootTaskBounds.set(rootTaskBounds); in WindowAnimationSpec()
DTaskPositioner.java453 private void updateWindowDragBounds(int x, int y, Rect rootTaskBounds) {
458 final int maxLeft = rootTaskBounds.right - mMinVisibleWidth;
459 final int minLeft = rootTaskBounds.left + mMinVisibleWidth - mWindowOriginalBounds.width();
463 final int minTop = rootTaskBounds.top;
464 final int maxTop = rootTaskBounds.bottom - mMinVisibleHeight;
DTask.java2236 private static void fitWithinBounds(Rect bounds, Rect rootTaskBounds, int overlapPxX, in fitWithinBounds() argument
2238 if (rootTaskBounds == null || rootTaskBounds.isEmpty() || rootTaskBounds.contains(bounds)) { in fitWithinBounds()
2247 if (bounds.right < (rootTaskBounds.left + overlapLR)) { in fitWithinBounds()
2248 horizontalDiff = overlapLR - (bounds.right - rootTaskBounds.left); in fitWithinBounds()
2249 } else if (bounds.left > (rootTaskBounds.right - overlapLR)) { in fitWithinBounds()
2250 horizontalDiff = -(overlapLR - (rootTaskBounds.right - bounds.left)); in fitWithinBounds()
2254 if (bounds.bottom < (rootTaskBounds.top + overlapTB)) { in fitWithinBounds()
2255 verticalDiff = overlapTB - (bounds.bottom - rootTaskBounds.top); in fitWithinBounds()
2256 } else if (bounds.top > (rootTaskBounds.bottom - overlapTB)) { in fitWithinBounds()
2257 verticalDiff = -(overlapTB - (rootTaskBounds.bottom - bounds.top)); in fitWithinBounds()