Home
last modified time | relevance | path

Searched refs:rippleShader (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/surfaceeffects/ripple/
DRippleView.kt39 protected lateinit var rippleShader: RippleShader in <lambda>() variable
49 rippleShader.rippleSize.setMaxSize(maxWidth, maxHeight) in <lambda>()
57 rippleShader.setCenter(x, y) in <lambda>()
61 rippleShader.pixelDensity = resources.displayMetrics.density in <lambda>()
66 rippleShader.pixelDensity = resources.displayMetrics.density in <lambda>()
73 rippleShader = RippleShader(rippleShape) in <lambda>()
75 rippleShader.color = RippleShader.RIPPLE_DEFAULT_COLOR in <lambda>()
76 rippleShader.rawProgress = 0f in <lambda>()
77 rippleShader.sparkleStrength = RippleShader.RIPPLE_SPARKLE_STRENGTH in <lambda>()
78 rippleShader.pixelDensity = resources.displayMetrics.density in <lambda>()
[all …]
DRippleAnimation.kt28 val rippleShader: RippleShader = RippleShader(config.rippleShape) in <lambda>() constant in com.android.systemui.surfaceeffects.ripple.RippleAnimation
51 rippleShader.rawProgress = progress in <lambda>()
52 rippleShader.distortionStrength = if (config.shouldDistort) 1 - progress else 0f in <lambda>()
53 rippleShader.time = now.toFloat() in <lambda>()
69 with(rippleShader) { in <lambda>()
DMultiRippleView.kt51 ripplePaint.shader = anim.rippleShader in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/surfaceeffects/ripple/
DRippleShaderTest.kt30 private lateinit var rippleShader: RippleShader variable in com.android.systemui.surfaceeffects.ripple.RippleShaderTest
34 rippleShader = RippleShader() in setup()
42 rippleShader.rippleSize.setMaxSize(expectedMaxWidth, expectedMaxHeight) in setMaxSize_hasCorrectSizes()
44 assertThat(rippleShader.rippleSize.sizes.size).isEqualTo(2) in setMaxSize_hasCorrectSizes()
45 assertThat(rippleShader.rippleSize.sizes[0]).isEqualTo(rippleShader.rippleSize.initialSize) in setMaxSize_hasCorrectSizes()
46 val maxSize = rippleShader.rippleSize.sizes[1] in setMaxSize_hasCorrectSizes()
58 rippleShader.rippleSize.setSizeAtProgresses(expectedSize0, expectedSize1, expectedSize2) in setSizeAtProgresses_hasCorrectSizes()
60 assertThat(rippleShader.rippleSize.sizes.size).isEqualTo(3) in setSizeAtProgresses_hasCorrectSizes()
61 assertThat(rippleShader.rippleSize.sizes[0]).isEqualTo(expectedSize0) in setSizeAtProgresses_hasCorrectSizes()
62 assertThat(rippleShader.rippleSize.sizes[1]).isEqualTo(expectedSize1) in setSizeAtProgresses_hasCorrectSizes()
[all …]
DRippleAnimationTest.kt70 with(rippleAnimation.rippleShader) { in init_shaderHasCorrectConfig()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/taptotransfer/receiver/
DReceiverChipRippleView.kt82 rippleShader.rawProgress = startingPercentage + (progress * (1 - startingPercentage)) in <lambda>()
83 rippleShader.distortionStrength = 1 - rippleShader.rawProgress in <lambda>()
84 rippleShader.pixelDensity = 1 - rippleShader.rawProgress in <lambda>()
85 rippleShader.time = now.toFloat() in <lambda>()
101 val ratio = rippleShader.rippleSize.currentHeight / newHeight in <lambda>()
107 with(rippleShader) { in <lambda>()
121 with(rippleShader) { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthRippleView.kt59 private val rippleShader = RippleShader() in <lambda>() constant
78 rippleShader.rippleSize.setMaxSize(field * 2f, field * 2f) in <lambda>()
82 rippleShader.setCenter(value.x.toFloat(), value.y.toFloat()) in <lambda>()
87 rippleShader.rawProgress = 0f in <lambda>()
88 rippleShader.pixelDensity = resources.displayMetrics.density in <lambda>()
89 rippleShader.sparkleStrength = RIPPLE_SPARKLE_STRENGTH in <lambda>()
91 ripplePaint.shader = rippleShader in <lambda>()
267 rippleShader.rawProgress = animator.animatedValue as Float in <lambda>()
268 rippleShader.time = now.toFloat() in <lambda>()
294 rippleShader.color = ColorUtils.setAlphaComponent( in <lambda>()
[all …]