Home
last modified time | relevance | path

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

/packages/apps/Dialer/java/com/android/incallui/answer/impl/answermethod/
DFlingUpDownMethod.java413 final float clampedProgress = MathUtil.clamp(swipeProgress, -1 /* min */, 1 /* max */); in updateSwipeTextAndPuckForTouch() local
414 final float positiveAdjustedProgress = Math.abs(clampedProgress); in updateSwipeTextAndPuckForTouch()
415 final boolean isAcceptingFlow = clampedProgress >= 0; in updateSwipeTextAndPuckForTouch()
429 float swipeTextAlpha = Math.max(0, 1 - Math.abs(clampedProgress) * progressSlots); in updateSwipeTextAndPuckForTouch()
475 -clampedProgress * DpUtil.dpToPx(getContext(), SWIPE_TO_ANSWER_MAX_TRANSLATION_Y_DP)); in updateSwipeTextAndPuckForTouch()
479 -clampedProgress * DpUtil.dpToPx(getContext(), SWIPE_TO_REJECT_MAX_TRANSLATION_Y_DP)); in updateSwipeTextAndPuckForTouch()
482 getParent().onAnswerProgressUpdate(clampedProgress); in updateSwipeTextAndPuckForTouch()