/frameworks/base/core/tests/coretests/src/android/view/ |
D | RoundedCornersTest.java | 56 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/ |
D | RoundedCorners.java | 76 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 …]
|
D | DisplayInfo.java | 318 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()
|
D | Display.java | 986 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()
|
D | WindowInsets.java | 154 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()
|
D | InsetsState.java | 568 public void setRoundedCorners(RoundedCorners roundedCorners) { in setRoundedCorners() argument 569 mRoundedCorners = roundedCorners; in setRoundedCorners()
|
D | WindowManagerImpl.java | 387 currentDisplayInfo.roundedCorners) in getPossibleMaximumWindowMetrics()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayFrames.java | 59 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()
|
D | DisplayContent.java | 1966 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/ |
D | DisplayDeviceInfo.java | 303 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()
|
D | LogicalDisplay.java | 209 info.roundedCorners = mOverrideDisplayInfo.roundedCorners; in getDisplayInfoLocked() 409 mBaseDisplayInfo.roundedCorners = deviceInfo.roundedCorners; in updateLocked()
|
D | LocalDisplayAdapter.java | 691 mInfo.roundedCorners = RoundedCorners.fromResources( in getDisplayDeviceInfoLocked()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayPolicyLayoutTests.java | 133 final RoundedCorners roundedCorners = mHasRoundedCorners in createDisplayFrames() local 137 info.displayCutout, roundedCorners, new PrivacyIndicatorBounds()); in createDisplayFrames()
|
D | LetterboxUiControllerTest.java | 532 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/ |
D | ShadeHeaderController.kt | 125 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/ |
D | ProgressBar.java | 598 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()
|