Home
last modified time | relevance | path

Searched refs:roundedCorners (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/view/
DRoundedCornersTest.java56 RoundedCorners roundedCorners = RoundedCorners.fromRadii(radius, 200, 400); in testGetRoundedCorner() local
58 assertThat(roundedCorners.getRoundedCorner(POSITION_TOP_LEFT), in testGetRoundedCorner()
60 assertThat(roundedCorners.getRoundedCorner(POSITION_TOP_RIGHT), in testGetRoundedCorner()
62 assertThat(roundedCorners.getRoundedCorner(POSITION_BOTTOM_RIGHT), in testGetRoundedCorner()
64 assertThat(roundedCorners.getRoundedCorner(POSITION_BOTTOM_LEFT), in testGetRoundedCorner()
70 RoundedCorners roundedCorners = RoundedCorners.NO_ROUNDED_CORNERS; in testGetRoundedCorner_noRoundedCorners() local
72 assertThat(roundedCorners.getRoundedCorner(POSITION_TOP_LEFT), nullValue()); in testGetRoundedCorner_noRoundedCorners()
73 assertThat(roundedCorners.getRoundedCorner(POSITION_TOP_RIGHT), nullValue()); in testGetRoundedCorner_noRoundedCorners()
74 assertThat(roundedCorners.getRoundedCorner(POSITION_BOTTOM_RIGHT), nullValue()); in testGetRoundedCorner_noRoundedCorners()
75 assertThat(roundedCorners.getRoundedCorner(POSITION_BOTTOM_LEFT), nullValue()); in testGetRoundedCorner_noRoundedCorners()
[all …]
/frameworks/base/core/java/android/view/
DRoundedCorners.java76 public RoundedCorners(RoundedCorner[] roundedCorners) { in RoundedCorners() argument
77 mRoundedCorners = roundedCorners; in RoundedCorners()
89 public RoundedCorners(RoundedCorners roundedCorners) { in RoundedCorners() argument
92 mRoundedCorners[i] = new RoundedCorner(roundedCorners.mRoundedCorners[i]); in RoundedCorners()
133 final RoundedCorner[] roundedCorners = new RoundedCorner[ROUNDED_CORNER_POSITION_LENGTH]; in fromRadii() local
141 roundedCorners[i] = createRoundedCorner( in fromRadii()
148 final RoundedCorners result = new RoundedCorners(roundedCorners); in fromRadii()
352 final RoundedCorner[] roundedCorners = new RoundedCorner[ROUNDED_CORNER_POSITION_LENGTH]; in insetWithFrame() local
356 roundedCorners[i] = new RoundedCorner(i); in insetWithFrame()
381 roundedCorners[i] = insetRoundedCorner(i, radius, centerX, centerY, insetLeft, insetTop, in insetWithFrame()
[all …]
DDisplayInfo.java318 public RoundedCorners roundedCorners; field in DisplayInfo
397 && Objects.equals(roundedCorners, other.roundedCorners) in equals()
449 roundedCorners = other.roundedCorners; in copyFrom()
502 roundedCorners = source.readTypedObject(RoundedCorners.CREATOR); in readFromParcel()
559 dest.writeTypedObject(roundedCorners, flags); in writeToParcel()
DDisplay.java986 final RoundedCorners roundedCorners = mDisplayInfo.roundedCorners; in getRoundedCorner() local
988 if (roundedCorners != null && rotation != mDisplayInfo.rotation) { in getRoundedCorner()
989 roundedCorners.rotate(rotation, in getRoundedCorner()
992 return roundedCorners == null ? null : roundedCorners.getRoundedCorner(position); in getRoundedCorner()
DWindowInsets.java154 RoundedCorners roundedCorners, in WindowInsets() argument
177 mRoundedCorners = roundedCorners; in WindowInsets()
1339 public Builder setRoundedCorners(RoundedCorners roundedCorners) { in setRoundedCorners() argument
1340 mRoundedCorners = roundedCorners != null in setRoundedCorners()
1341 ? roundedCorners : RoundedCorners.NO_ROUNDED_CORNERS; in setRoundedCorners()
DInsetsState.java568 public void setRoundedCorners(RoundedCorners roundedCorners) { in setRoundedCorners() argument
569 mRoundedCorners = roundedCorners; in setRoundedCorners()
DWindowManagerImpl.java387 currentDisplayInfo.roundedCorners) in getPossibleMaximumWindowMetrics()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayFrames.java59 RoundedCorners roundedCorners, PrivacyIndicatorBounds indicatorBounds) { in DisplayFrames() argument
61 update(info.rotation, info.logicalWidth, info.logicalHeight, cutout, roundedCorners, in DisplayFrames()
75 @NonNull RoundedCorners roundedCorners, in update() argument
81 && state.getRoundedCorners().equals(roundedCorners) in update()
92 state.setRoundedCorners(roundedCorners); in update()
DDisplayContent.java1966 final RoundedCorners roundedCorners = calculateRoundedCornersForRotation(rotation); in startFixedRotationTransform() local
1970 cutout, roundedCorners, indicatorBounds); in startFixedRotationTransform()
2181 final RoundedCorners roundedCorners = calculateRoundedCornersForRotation(rotation); in updateDisplayAndOrientation() local
2197 mDisplayInfo.roundedCorners = roundedCorners; in updateDisplayAndOrientation()
2257 RoundedCorners roundedCorners, int rotation) { in calculateRoundedCornersForRotationUncached() argument
2258 if (roundedCorners == null || roundedCorners == RoundedCorners.NO_ROUNDED_CORNERS) { in calculateRoundedCornersForRotationUncached()
2263 return roundedCorners; in calculateRoundedCornersForRotationUncached()
2266 return roundedCorners.rotate( in calculateRoundedCornersForRotationUncached()
2851 mInitialRoundedCorners = mDisplayInfo.roundedCorners; in initializeDisplayBaseInfo()
2880 final RoundedCorners newRoundedCorners = mDisplayInfo.roundedCorners; in updateBaseDisplayMetricsIfNeeded()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayDeviceInfo.java303 public RoundedCorners roundedCorners; field in DisplayDeviceInfo
440 || !Objects.equals(roundedCorners, other.roundedCorners) in diff()
485 roundedCorners = other.roundedCorners; in copyFrom()
531 if (roundedCorners != null) { in toString()
532 sb.append(", roundedCorners ").append(roundedCorners); in toString()
DLogicalDisplay.java209 info.roundedCorners = mOverrideDisplayInfo.roundedCorners; in getDisplayInfoLocked()
409 mBaseDisplayInfo.roundedCorners = deviceInfo.roundedCorners; in updateLocked()
DLocalDisplayAdapter.java691 mInfo.roundedCorners = RoundedCorners.fromResources( in getDisplayDeviceInfoLocked()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayPolicyLayoutTests.java133 final RoundedCorners roundedCorners = mHasRoundedCorners in createDisplayFrames() local
137 info.displayCutout, roundedCorners, new PrivacyIndicatorBounds()); in createDisplayFrames()
DLetterboxUiControllerTest.java532 RoundedCorners roundedCorners = new RoundedCorners( in testGetRoundedCornersRadius_withRoundedCornersFromInsets() local
541 doReturn(roundedCorners).when(insets).getRoundedCorners(); in testGetRoundedCornersRadius_withRoundedCornersFromInsets()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DShadeHeaderController.kt125 private var roundedCorners = 0 in <lambda>() variable
460 roundedCorners = resources.getDimensionPixelSize(R.dimen.rounded_corner_content_padding) in <lambda>()
/frameworks/base/core/java/android/widget/
DProgressBar.java598 final float[] roundedCorners = new float[] { 5, 5, 5, 5, 5, 5, 5, 5 }; in getDrawableShape() local
599 return new RoundRectShape(roundedCorners, null, null); in getDrawableShape()