Home
last modified time | relevance | path

Searched refs:roundedCornerFrame (Results 1 – 2 of 2) sorted by relevance

/aosp14/frameworks/base/core/java/android/view/
H A DRoundedCorners.java347 public RoundedCorners insetWithFrame(Rect frame, Rect roundedCornerFrame) { in insetWithFrame() argument
348 int insetLeft = frame.left - roundedCornerFrame.left; in insetWithFrame()
349 int insetTop = frame.top - roundedCornerFrame.top; in insetWithFrame()
350 int insetRight = roundedCornerFrame.right - frame.right; in insetWithFrame()
351 int insetBottom = roundedCornerFrame.bottom - frame.bottom; in insetWithFrame()
366 centerX = roundedCornerFrame.width() - radius; in insetWithFrame()
370 centerX = roundedCornerFrame.width() - radius; in insetWithFrame()
371 centerY = roundedCornerFrame.height() - radius; in insetWithFrame()
375 centerY = roundedCornerFrame.height() - radius; in insetWithFrame()
H A DInsetsState.java227 final Rect roundedCornerFrame = new Rect(mRoundedCornerFrame); in calculateRelativeRoundedCorners() local
231 final Insets insets = source.calculateInsets(roundedCornerFrame, false); in calculateRelativeRoundedCorners()
232 roundedCornerFrame.inset(insets); in calculateRelativeRoundedCorners()
235 if (!roundedCornerFrame.isEmpty() && !roundedCornerFrame.equals(mDisplayFrame)) { in calculateRelativeRoundedCorners()
236 return mRoundedCorners.insetWithFrame(frame, roundedCornerFrame); in calculateRelativeRoundedCorners()