Home
last modified time | relevance | path

Searched refs:currentSizeIndex (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/surfaceeffects/ripple/
DRippleShader.kt386 @VisibleForTesting var currentSizeIndex = 0 variable in com.android.systemui.surfaceeffects.ripple.RippleSize
411 currentSizeIndex = 0 in setSizeAtProgresses()
447 return currentSizeIndex in updateTargetIndex()
450 var candidate = sizes[currentSizeIndex] in updateTargetIndex()
453 currentSizeIndex = Math.min(currentSizeIndex + 1, sizes.size - 1) in updateTargetIndex()
454 candidate = sizes[currentSizeIndex] in updateTargetIndex()
457 return currentSizeIndex in updateTargetIndex()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/surfaceeffects/ripple/
DRippleShaderTest.kt109 assertThat(rippleShader.rippleSize.currentSizeIndex).isEqualTo(3) in update_getsCorrectNextTargetSize()