Home
last modified time | relevance | path

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

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/elements/rotaryinput/
DRotary.kt410 val currentVelocity = rotaryVelocityTracker.velocity in handleScrollEvent() constant
411 debugLog { "currentVelocity: $currentVelocity" } in handleScrollEvent()
413 if (abs(currentVelocity) >= abs(previousVelocity)) { in handleScrollEvent()
415 flingVelocity = currentVelocity * flingScaleFactor in handleScrollEvent()
417 previousVelocity = currentVelocity in handleScrollEvent()
1107 currentVelocity = rotaryVelocityTracker.velocity.absoluteValue, in applySmoothing()
1134 currentVelocity: Float, in exponentialSmoothing()
1137 ): Float = smoothingConstant * currentVelocity + (1 - smoothingConstant) * prevVelocity in exponentialSmoothing()