Home
last modified time | relevance | path

Searched refs:topRoundness (Results 1 – 6 of 6) sorted by relevance

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
H A DRoundableTest.kt29 assertEquals(0f, roundable.roundableState.topRoundness)
45 assertEquals(1f, roundable.roundableState.topRoundness)
61 assertEquals(1f, roundable.roundableState.topRoundness)
69 assertEquals(1f, roundable.roundableState.topRoundness)
74 assertEquals(0f, roundable.roundableState.topRoundness)
97 assertEquals(0.1f, roundable.roundableState.topRoundness)
102 assertEquals(0.2f, roundable.roundableState.topRoundness)
109 assertEquals(0.5f, roundable.roundableState.topRoundness)
114 assertEquals(0.5f, roundable.roundableState.topRoundness)
121 assertEquals(0.1f, roundable.roundableState.topRoundness)
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
H A DRoundable.kt31 val topRoundness: Float
32 get() = roundableState.topRoundness
50 else topRoundness * maxRadius
301 return topRoundness != 0f || bottomRoundness != 0f
353 internal var topRoundness = 0f
364 val topRadius = topRoundness * maxRadius
372 return topRadius - (overShoot * topRoundness / (topRoundness + bottomRoundness))
381 val topRadius = topRoundness * maxRadius
436 append("top: { value: $topRoundness, requests: $topRoundnessMap}")
450 override fun get(view: View): Float = roundable.topRoundness
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DNotificationBackgroundView.java242 public void setRadius(float topRoundness, float bottomRoundness) { in setRadius() argument
243 if (topRoundness == mCornerRadii[0] && bottomRoundness == mCornerRadii[4]) { in setRadius()
247 mCornerRadii[0] = topRoundness; in setRadius()
248 mCornerRadii[1] = topRoundness; in setRadius()
249 mCornerRadii[2] = topRoundness; in setRadius()
250 mCornerRadii[3] = topRoundness; in setRadius()
H A DExpandableOutlineView.java151 float topRoundness, in getRoundedRectPath() argument
155 mTmpCornerRadii[0] = topRoundness; in getRoundedRectPath()
156 mTmpCornerRadii[1] = topRoundness; in getRoundedRectPath()
157 mTmpCornerRadii[2] = topRoundness; in getRoundedRectPath()
158 mTmpCornerRadii[3] = topRoundness; in getRoundedRectPath()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
H A DActivatableNotificationViewTest.kt91 assertThat(mView.topRoundness).isEqualTo(0f)
93 assertThat(mView.topRoundness).isEqualTo(1f)
97 assertThat(mView.topRoundness).isEqualTo(1f)
H A DNotificationTestHelper.java228 float topRoundness, in createRowWithRoundness() argument
233 row.requestRoundness(topRoundness, bottomRoundness, sourceType, /*animate = */ false); in createRowWithRoundness()
234 assertEquals(topRoundness, row.getTopRoundness(), /* delta = */ 0f); in createRowWithRoundness()