/frameworks/base/graphics/java/android/graphics/drawable/ |
D | PaintDrawable.java | 45 float[] radii = null; in setCornerRadius() local 47 radii = new float[8]; in setCornerRadius() 49 radii[i] = radius; in setCornerRadius() 52 setCornerRadii(radii); in setCornerRadius() 61 public void setCornerRadii(float[] radii) { in setCornerRadii() argument 62 if (radii == null) { in setCornerRadii() 67 setShape(new RoundRectShape(radii, null, null)); in setCornerRadii()
|
D | GradientDrawable.java | 259 public void setCornerRadii(@Nullable float[] radii) { in setCornerRadii() argument 260 mGradientState.setCornerRadii(radii); in setCornerRadii() 279 float[] radii = mGradientState.mRadiusArray; in getCornerRadii() local 280 if (radii == null) { in getCornerRadii() 283 return radii.clone(); in getCornerRadii() 2358 public void setCornerRadii(float[] radii) { 2359 mRadiusArray = radii; 2360 if (radii == null) {
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/ |
D | RadiiAnimatorTest.java | 45 public void onRadiiAnimationUpdate(float[] radii) { 46 mResultRadii = radii; 62 final float[] radii = generateRadii(0.0f); in constructor() local 63 final RadiiAnimator radiiAnimator = new RadiiAnimator(radii, mRadiiAnimationListener); in constructor() 64 assertThat(radiiAnimator.evaluate(0.0f)).isEqualTo(radii); in constructor() 102 float[] radii = new float[8]; in generateRadii() local 103 Arrays.fill(radii, value); in generateRadii() 104 return radii; in generateRadii()
|
D | MenuViewTest.java | 146 final float[] radii = getMenuViewGradient().getCornerRadii(); in onEdgeChangedIfNeeded_moveToLeftEdge_matchRadii() local 148 assertThat(radii[0]).isEqualTo(0.0f); in onEdgeChangedIfNeeded_moveToLeftEdge_matchRadii() 149 assertThat(radii[1]).isEqualTo(0.0f); in onEdgeChangedIfNeeded_moveToLeftEdge_matchRadii() 150 assertThat(radii[6]).isEqualTo(0.0f); in onEdgeChangedIfNeeded_moveToLeftEdge_matchRadii() 151 assertThat(radii[7]).isEqualTo(0.0f); in onEdgeChangedIfNeeded_moveToLeftEdge_matchRadii()
|
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/ |
D | GhostedViewTransitionAnimatorController.kt | 463 radii: FloatArray, in updateRadii() 467 radii[0] = topCornerRadius in updateRadii() 468 radii[1] = topCornerRadius in updateRadii() 469 radii[2] = topCornerRadius in updateRadii() 470 radii[3] = topCornerRadius in updateRadii() 472 radii[4] = bottomCornerRadius in updateRadii() 473 radii[5] = bottomCornerRadius in updateRadii() 474 radii[6] = bottomCornerRadius in updateRadii() 475 radii[7] = bottomCornerRadius in updateRadii() 494 val radii = gradient.cornerRadii in savePreviousBackgroundRadii() constant [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | Roundable.kt | 55 roundableState.radiiBuffer.also { radii -> in <lambda>() method 59 radii = radii, in <lambda>() 295 radii: FloatArray, in <lambda>() 297 if (radii.size != 8) error("Unexpected radiiBuffer size ${radii.size}") in <lambda>() 299 if (radii[0] != topCornerRadius || radii[4] != bottomCornerRadius) { in <lambda>() 300 (0..3).forEach { radii[it] = topCornerRadius } in <lambda>() 301 (4..7).forEach { radii[it] = bottomCornerRadius } in <lambda>()
|
/frameworks/base/core/java/android/view/ |
D | RoundedCorners.java | 111 public static RoundedCorners fromRadii(Pair<Integer, Integer> radii, int displayWidth, in fromRadii() argument 113 return fromRadii(radii, displayWidth, displayHeight, displayWidth, displayHeight); in fromRadii() 116 private static RoundedCorners fromRadii(Pair<Integer, Integer> radii, int physicalDisplayWidth, in fromRadii() argument 118 if (radii == null) { in fromRadii() 126 if (radii.equals(sCachedRadii) && sCachedDisplayWidth == displayWidth in fromRadii() 134 int topRadius = radii.first > 0 ? radii.first : 0; in fromRadii() 135 int bottomRadius = radii.second > 0 ? radii.second : 0; in fromRadii() 152 sCachedRadii = radii; in fromRadii() 176 final Pair<Integer, Integer> radii = new Pair<>( in loadRoundedCornerRadii() local 179 return radii; in loadRoundedCornerRadii()
|
/frameworks/native/libs/renderengine/skia/ |
D | SkiaRenderEngine.cpp | 118 SkVector radii[4]) { in intersectionIsRoundRect() 139 radii[0].set(cornerRadius.x, cornerRadius.y); in intersectionIsRoundRect() 142 radii[0].set(0, 0); in intersectionIsRoundRect() 148 radii[1].set(cornerRadius.x, cornerRadius.y); in intersectionIsRoundRect() 151 radii[1].set(0, 0); in intersectionIsRoundRect() 157 radii[2].set(cornerRadius.x, cornerRadius.y); in intersectionIsRoundRect() 160 radii[2].set(0, 0); in intersectionIsRoundRect() 166 radii[3].set(cornerRadius.x, cornerRadius.y); in intersectionIsRoundRect() 169 radii[3].set(0, 0); in intersectionIsRoundRect() 199 SkVector radii[4]; in getBoundsAndClip() local [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/ |
D | PanelTaskViewController.kt | 70 val radii = FloatArray(8) { roundedCorner.toFloat() } in onInitialized() constant 72 ShapeDrawable(RoundRectShape(radii, null, null)).apply { in onInitialized()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Path.java | 671 public void addRoundRect(@NonNull RectF rect, @NonNull float[] radii, @NonNull Direction dir) { in addRoundRect() argument 675 addRoundRect(rect.left, rect.top, rect.right, rect.bottom, radii, dir); in addRoundRect() 687 @NonNull float[] radii, @NonNull Direction dir) { in addRoundRect() argument 688 if (radii.length < 8) { in addRoundRect() 691 nAddRoundRect(mNativePath, left, top, right, bottom, radii, dir.nativeInt); in addRoundRect() 890 float right, float bottom, float[] radii, int dir); in nAddRoundRect() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/ |
D | IRadiiAnimationListener.java | 20 void onRadiiAnimationUpdate(float[] radii); in onRadiiAnimationUpdate() argument
|
D | MenuView.java | 190 void setRadii(float[] radii) { in setRadii() argument 191 getContainerViewGradient().setCornerRadii(radii); in setRadii()
|
D | MenuAnimationController.java | 97 public void onRadiiAnimationUpdate(float[] radii) { in MenuAnimationController() 98 mMenuView.setRadii(radii); in MenuAnimationController()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/backlight/ui/view/ |
D | KeyboardBacklightDialog.kt | 317 val radii = FloatArray(8) { smallRadius } in <lambda>() constant 319 radii.setLeftCorners(largeRadius) in <lambda>() 323 radii.setRightCorners(largeRadius) in <lambda>() 325 return radii in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | NotificationChildrenContainer.java | 1020 float[] radii = mGroupHeaderWrapper.getUpdatedRadii(); 1027 radii,
|