Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DMediaCarouselScrollHandler.kt315 val newTranslation: Float in onTouch() constant
317 newTranslation = 0.0f in onTouch()
319 newTranslation = getMaxTranslation() * Math.signum(currentTranslation) in onTouch()
329 newTranslation, startVelocity = 0.0f, config = translationConfig).start() in onTouch()
330 scrollView.animationTargetX = newTranslation in onTouch()
359 var newTranslation = currentTranslation - distanceX in onScroll() variable
360 val absTranslation = Math.abs(newTranslation) in onScroll()
369 newTranslation = currentTranslation - distanceX * RUBBERBAND_FACTOR in onScroll()
372 newTranslation = Math.signum(newTranslation) * (getMaxTranslation() + in onScroll()
378 if (Math.signum(newTranslation) != Math.signum(currentTranslation) && in onScroll()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DStackScrollAlgorithm.java622 float newTranslation = Math.max(ambientState.getTopPadding() in clampHunToTop() local
624 childState.height = (int) Math.max(childState.height - (newTranslation in clampHunToTop()
626 childState.yTranslation = newTranslation; in clampHunToTop()
631 float newTranslation; in clampHunToMaxTranslation() local
637 newTranslation = Math.min(childState.yTranslation, bottomPosition); in clampHunToMaxTranslation()
639 - newTranslation); in clampHunToMaxTranslation()
640 childState.yTranslation = newTranslation; in clampHunToMaxTranslation()