Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/view/
DRoundedCornersTest.java83 RoundedCorners roundedCorners = RoundedCorners.fromRadii(radius, 200, 400); in testGetRoundedCorner() local
85 assertThat(roundedCorners.getRoundedCorner(POSITION_TOP_LEFT), in testGetRoundedCorner()
87 assertThat(roundedCorners.getRoundedCorner(POSITION_TOP_RIGHT), in testGetRoundedCorner()
89 assertThat(roundedCorners.getRoundedCorner(POSITION_BOTTOM_RIGHT), in testGetRoundedCorner()
91 assertThat(roundedCorners.getRoundedCorner(POSITION_BOTTOM_LEFT), in testGetRoundedCorner()
97 RoundedCorners roundedCorners = RoundedCorners.NO_ROUNDED_CORNERS; in testGetRoundedCorner_noRoundedCorners() local
99 assertThat(roundedCorners.getRoundedCorner(POSITION_TOP_LEFT), nullValue()); in testGetRoundedCorner_noRoundedCorners()
100 assertThat(roundedCorners.getRoundedCorner(POSITION_TOP_RIGHT), nullValue()); in testGetRoundedCorner_noRoundedCorners()
101 assertThat(roundedCorners.getRoundedCorner(POSITION_BOTTOM_RIGHT), nullValue()); in testGetRoundedCorner_noRoundedCorners()
102 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()
358 final RoundedCorner[] roundedCorners = new RoundedCorner[ROUNDED_CORNER_POSITION_LENGTH]; in insetWithFrame() local
362 roundedCorners[i] = new RoundedCorner(i); in insetWithFrame()
387 roundedCorners[i] = insetRoundedCorner(i, radius, centerX, centerY, insetLeft, insetTop, in insetWithFrame()
[all …]
DDisplayInfo.java346 public RoundedCorners roundedCorners; field in DisplayInfo
458 && Objects.equals(roundedCorners, other.roundedCorners) in equals()
520 roundedCorners = other.roundedCorners; in copyFrom()
585 roundedCorners = source.readTypedObject(RoundedCorners.CREATOR); in readFromParcel()
654 dest.writeTypedObject(roundedCorners, flags); in writeToParcel()
DDisplay.java1135 final RoundedCorners roundedCorners = mDisplayInfo.roundedCorners; in getRoundedCorner() local
1137 if (roundedCorners != null && rotation != mDisplayInfo.rotation) { in getRoundedCorner()
1138 roundedCorners.rotate(rotation, in getRoundedCorner()
1141 return roundedCorners == null ? null : roundedCorners.getRoundedCorner(position); in getRoundedCorner()
DWindowInsets.java149 RoundedCorners roundedCorners, in WindowInsets() argument
177 mRoundedCorners = roundedCorners; in WindowInsets()
1612 public Builder setRoundedCorners(RoundedCorners roundedCorners) { in setRoundedCorners() argument
1613 mRoundedCorners = roundedCorners != null in setRoundedCorners()
1614 ? roundedCorners : RoundedCorners.NO_ROUNDED_CORNERS; in setRoundedCorners()
DInsetsState.java503 public void setRoundedCorners(RoundedCorners roundedCorners) { in setRoundedCorners() argument
504 mRoundedCorners = roundedCorners; in setRoundedCorners()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayFrames.java64 RoundedCorners roundedCorners, PrivacyIndicatorBounds indicatorBounds, in DisplayFrames() argument
67 update(info.rotation, info.logicalWidth, info.logicalHeight, cutout, roundedCorners, in DisplayFrames()
81 @NonNull RoundedCorners roundedCorners, in update() argument
88 && state.getRoundedCorners().equals(roundedCorners) in update()
99 state.setRoundedCorners(roundedCorners); in update()
DDeferredDisplayUpdater.java443 || !Objects.equals(first.roundedCorners, second.roundedCorners) in calculateDisplayInfoDiff()
DDisplayContent.java2062 final RoundedCorners roundedCorners = calculateRoundedCornersForRotation(rotation); in startFixedRotationTransform() local
2067 cutout, roundedCorners, indicatorBounds, displayShape); in startFixedRotationTransform()
2276 final RoundedCorners roundedCorners = calculateRoundedCornersForRotation(rotation); in updateDisplayAndOrientation() local
2293 mDisplayInfo.roundedCorners = roundedCorners; in updateDisplayAndOrientation()
2373 RoundedCorners roundedCorners, int rotation) { in calculateRoundedCornersForRotationUncached() argument
2374 if (roundedCorners == null || roundedCorners == RoundedCorners.NO_ROUNDED_CORNERS) { in calculateRoundedCornersForRotationUncached()
2379 return roundedCorners; in calculateRoundedCornersForRotationUncached()
2382 return roundedCorners.rotate( in calculateRoundedCornersForRotationUncached()
3008 mInitialRoundedCorners = mDisplayInfo.roundedCorners; in initializeDisplayBaseInfo()
3038 final RoundedCorners newRoundedCorners = mDisplayInfo.roundedCorners; in updateBaseDisplayMetricsIfNeeded()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayDeviceInfo.java378 public RoundedCorners roundedCorners; field in DisplayDeviceInfo
537 || !Objects.equals(roundedCorners, other.roundedCorners) in diff()
586 roundedCorners = other.roundedCorners; in copyFrom()
636 if (roundedCorners != null) { in toString()
637 sb.append(", roundedCorners ").append(roundedCorners); in toString()
DLogicalDisplay.java547 mBaseDisplayInfo.roundedCorners = deviceInfo.roundedCorners; in updateLocked()
DLocalDisplayAdapter.java744 mInfo.roundedCorners = RoundedCorners.fromResources( in getDisplayDeviceInfoLocked()
/frameworks/base/services/core/java/com/android/server/wm/utils/
DDisplayInfoOverrides.java47 out.roundedCorners = source.roundedCorners;
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayPolicyLayoutTests.java129 final RoundedCorners roundedCorners = mHasRoundedCorners in createDisplayFrames() local
132 return new DisplayFrames(insetsState, info, info.displayCutout, roundedCorners, in createDisplayFrames()
DLetterboxUiControllerTest.java622 RoundedCorners roundedCorners = new RoundedCorners( in testGetRoundedCornersRadius_withRoundedCornersFromInsets() local
631 insets.setRoundedCorners(roundedCorners); in testGetRoundedCornersRadius_withRoundedCornersFromInsets()
/frameworks/base/core/java/android/window/
DWindowMetricsController.java170 currentDisplayInfo.roundedCorners).setDisplayCutout(cutout).build(); in getPossibleMaximumWindowMetrics()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DShadeHeaderController.kt143 private var roundedCorners = 0 in <lambda>() variable in com.android.systemui.shade.ShadeHeaderController
550 roundedCorners = resources.getDimensionPixelSize(R.dimen.rounded_corner_content_padding) in <lambda>()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DLocalDisplayAdapterTest.java1115 assertThat(info.roundedCorners).isNotNull(); in test_getDisplayDeviceInfoLocked_internalDisplay_usesCutoutAndCorners()
1116 assertThat(info.roundedCorners.getRoundedCorner(0).getRadius()).isEqualTo(5); in test_getDisplayDeviceInfoLocked_internalDisplay_usesCutoutAndCorners()
1141 assertThat(info.roundedCorners).isNull(); in test_getDisplayDeviceInfoLocked_externalDisplay_doesNotUseCutoutOrCorners()
/frameworks/base/core/java/android/widget/
DProgressBar.java607 final float[] roundedCorners = new float[] { 5, 5, 5, 5, 5, 5, 5, 5 }; in getDrawableShape() local
608 return new RoundRectShape(roundedCorners, null, null); in getDrawableShape()