Home
last modified time | relevance | path

Searched refs:mRoundedCorners (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/view/
DRoundedCornersTest.java74 final RoundedCorners mRoundedCorners = new RoundedCorners( field in RoundedCornersTest
107 assertThat(mRoundedCorners.hashCode(), in testHashCode()
109 assertThat(mRoundedCorners.hashCode(), in testHashCode()
115 assertThat(mRoundedCorners, in testEquals()
118 assertThat(mRoundedCorners, in testEquals()
125 mRoundedCorners.setRoundedCorner(POSITION_BOTTOM_LEFT, roundedCorner); in testSetRoundedCorner()
127 assertThat(mRoundedCorners.getRoundedCorner(POSITION_BOTTOM_LEFT), equalTo(roundedCorner)); in testSetRoundedCorner()
132 mRoundedCorners.setRoundedCorner(POSITION_BOTTOM_LEFT, null); in testSetRoundedCorner_null()
134 assertThat(mRoundedCorners.mRoundedCorners[POSITION_BOTTOM_LEFT], in testSetRoundedCorner_null()
136 assertThat(mRoundedCorners.getRoundedCorner(POSITION_BOTTOM_LEFT), nullValue()); in testSetRoundedCorner_null()
[all …]
/frameworks/base/core/java/android/view/
DRoundedCorners.java74 public final RoundedCorner[] mRoundedCorners; field in RoundedCorners
77 mRoundedCorners = roundedCorners; in RoundedCorners()
82 mRoundedCorners = new RoundedCorner[ROUNDED_CORNER_POSITION_LENGTH]; in RoundedCorners()
83 mRoundedCorners[POSITION_TOP_LEFT] = topLeft; in RoundedCorners()
84 mRoundedCorners[POSITION_TOP_RIGHT] = topRight; in RoundedCorners()
85 mRoundedCorners[POSITION_BOTTOM_RIGHT] = bottomRight; in RoundedCorners()
86 mRoundedCorners[POSITION_BOTTOM_LEFT] = bottomLeft; in RoundedCorners()
90 mRoundedCorners = new RoundedCorner[ROUNDED_CORNER_POSITION_LENGTH]; in RoundedCorners()
92 mRoundedCorners[i] = new RoundedCorner(roundedCorners.mRoundedCorners[i]); in RoundedCorners()
361 if (mRoundedCorners[i].isEmpty()) { in insetWithFrame()
[all …]
DWindowInsets.java93 @Nullable private final RoundedCorners mRoundedCorners; field in WindowInsets
177 mRoundedCorners = roundedCorners; in WindowInsets()
201 src.mRoundedCorners, in WindowInsets()
500 || mDisplayCutout != null || mRoundedCorners != null; in hasInsets()
630 return mRoundedCorners == null ? null : mRoundedCorners.getRoundedCorner(position); in getRoundedCorner()
679 null /* displayCutout */, mRoundedCorners, mPrivacyIndicatorBounds, mDisplayShape, in consumeDisplayCutout()
737 mRoundedCorners, mPrivacyIndicatorBounds, mDisplayShape, mCompatInsetsTypes, in consumeSystemWindowInsets()
1052 result.append(mRoundedCorners != null ? "roundedCorners=" + mRoundedCorners : ""); in toString()
1189 mRoundedCorners == null in insetUnchecked()
1191 : mRoundedCorners.inset(left, top, right, bottom), in insetUnchecked()
[all …]
DInsetsState.java89 private RoundedCorners mRoundedCorners = RoundedCorners.NO_ROUNDED_CORNERS; field in InsetsState
220 return mRoundedCorners.insetWithFrame(frame, roundedCornerFrame); in calculateRelativeRoundedCorners()
223 return mRoundedCorners; in calculateRelativeRoundedCorners()
229 return mRoundedCorners.inset(insetLeft, insetTop, insetRight, insetBottom); in calculateRelativeRoundedCorners()
504 mRoundedCorners = roundedCorners; in setRoundedCorners()
508 return mRoundedCorners; in getRoundedCorners()
575 mRoundedCorners = mRoundedCorners.scale(scale); in scale()
596 mRoundedCorners = other.getRoundedCorners(); in set()
619 mRoundedCorners = other.getRoundedCorners(); in set()
660 pw.println(newPrefix + "mRoundedCorners=" + mRoundedCorners); in dump()
[all …]