Searched refs:MathUtil (Results 1 – 4 of 4) sorted by relevance
/packages/apps/Dialer/java/com/android/incallui/answer/impl/answermethod/ |
D | FlingUpDownMethod.java | 57 import com.android.dialer.common.MathUtil; 114 view.setTranslationY(MathUtil.lerp(view.getTranslationY(), newY, SWIPE_LERP_PROGRESS_FACTOR)); in moveTowardY() 118 view.setTranslationX(MathUtil.lerp(view.getTranslationX(), newX, SWIPE_LERP_PROGRESS_FACTOR)); in moveTowardX() 122 view.setAlpha(MathUtil.lerp(view.getAlpha(), newAlpha, SWIPE_LERP_PROGRESS_FACTOR)); in fadeToward() 126 view.setRotation(MathUtil.lerp(view.getRotation(), newRotation, SWIPE_LERP_PROGRESS_FACTOR)); in rotateToward() 413 final float clampedProgress = MathUtil.clamp(swipeProgress, -1 /* min */, 1 /* max */); in updateSwipeTextAndPuckForTouch()
|
D | FlingUpDownTouchHandler.java | 36 import com.android.dialer.common.MathUtil; 366 return MathUtil.clamp(absoluteProgress * (pointerAboveZero ? -1 : 1), -1f, 1f); in pointerYToProgress()
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/ |
D | AnswerFragment.java | 61 import com.android.dialer.common.MathUtil; 140 view.setAlpha(MathUtil.lerp(view.getAlpha(), newAlpha, ANIMATE_LERP_PROGRESS)); in fadeToward() 144 view.setScaleX(MathUtil.lerp(view.getScaleX(), newScale, ANIMATE_LERP_PROGRESS)); in scaleToward() 145 view.setScaleY(MathUtil.lerp(view.getScaleY(), newScale, ANIMATE_LERP_PROGRESS)); in scaleToward() 920 scaleToward(contactGridManager.getContainerView(), MathUtil.lerp(1f, .75f, headerProgress)); in onAnswerProgressUpdate()
|
/packages/apps/Dialer/java/com/android/dialer/common/ |
D | MathUtil.java | 20 public class MathUtil { class
|