Searched defs:layoutFrame (Results 1 - 1 of 1) sorted by relevance

/frameworks/base/services/core/java/com/android/server/wm/
H A DWindowState.java661 * Subtracts the insets calculated by intersecting {@param layoutFrame} with {@param insetFrame}
663 * {@param frame} would be shifted to {@param layoutFrame} and then applying the insets from
667 private void subtractInsets(Rect frame, Rect layoutFrame, Rect insetFrame, Rect displayFrame) { argument
668 final int left = Math.max(0, insetFrame.left - Math.max(layoutFrame.left, displayFrame.left));
669 final int top = Math.max(0, insetFrame.top - Math.max(layoutFrame.top, displayFrame.top));
670 final int right = Math.max(0, Math.min(layoutFrame.right, displayFrame.right) - insetFrame.right);
671 final int bottom = Math.max(0, Math.min(layoutFrame.bottom, displayFrame.bottom) - insetFrame.bottom);

Completed in 18 milliseconds