Home
last modified time | relevance | path

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

/packages/apps/Car/Notification/src/com/android/car/notification/
DDismissAnimationHelper.java140 float calculateTranslateDistance(CarNotificationBaseViewHolder viewHolder, float moveDeltaX) { in calculateTranslateDistance() argument
143 if (viewHolder.isDismissible() || moveDeltaX == 0) { in calculateTranslateDistance()
144 return moveDeltaX; in calculateTranslateDistance()
148 int swipeDirection = moveDeltaX > 0 ? Direction.RIGHT : Direction.LEFT; in calculateTranslateDistance()
152 if (Math.abs(moveDeltaX) >= width) { in calculateTranslateDistance()
161 * (float) Math.sin((moveDeltaX / width) * (Math.PI / 2)); in calculateTranslateDistance()