Searched refs:roundable (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | RoundableTest.kt | 22 private val roundable = FakeRoundable(targetView = targetView) constant 27 assertEquals(0f, roundable.roundableState.topRoundness) in defaultConfig_shouldNotHaveRoundedCorner() 28 assertEquals(0f, roundable.roundableState.bottomRoundness) in defaultConfig_shouldNotHaveRoundedCorner() 29 assertEquals(false, roundable.hasRoundedCorner()) in defaultConfig_shouldNotHaveRoundedCorner() 34 roundable.applyRoundnessAndInvalidate() in applyRoundnessAndInvalidate_should_invalidate_targetView() 41 roundable.requestTopRoundness(value = 1f, sourceType = SOURCE1) in requestTopRoundness_update_and_invalidate_targetView() 43 assertEquals(1f, roundable.roundableState.topRoundness) in requestTopRoundness_update_and_invalidate_targetView() 49 roundable.requestBottomRoundness(value = 1f, sourceType = SOURCE1) in requestBottomRoundness_update_and_invalidate_targetView() 51 assertEquals(1f, roundable.roundableState.bottomRoundness) in requestBottomRoundness_update_and_invalidate_targetView() 57 roundable.requestRoundness(top = 1f, bottom = 1f, sourceType = SOURCE1) in requestRoundness_update_and_invalidate_targetView() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | Roundable.kt | 317 private val roundable: Roundable, constant in com.android.systemui.statusbar.notification.RoundableState 324 private val topAnimatable = topAnimatable(roundable) 327 private val bottomAnimatable = bottomAnimatable(roundable) 341 val height = roundable.clipHeight 358 val height = roundable.clipHeight 408 roundable.applyRoundnessAndInvalidate() in setMaxRadius() 425 private fun topAnimatable(roundable: Roundable): AnimatableProperty = in topAnimatable() 428 override fun get(view: View): Float = roundable.topRoundness in topAnimatable() 431 roundable.roundableState.topRoundness = value in topAnimatable() 432 roundable.applyRoundnessAndInvalidate() in topAnimatable() [all …]
|