Home
last modified time | relevance | path

Searched refs:boundToRange (Results 1 – 25 of 29) sorted by relevance

12

/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/
DTaskViewTouchController.java294 Utilities.boundToRange(totalDisplacement * mProgressMultiplier / 2, 0, 1)); in onDrag()
318 Utilities.boundToRange(totalDisplacement * mProgressMultiplier, 0, 1)); in onDrag()
333 velocity = Utilities.boundToRange(velocity, -maxTaskDismissDragVelocity, in onDragEnd()
358 animationDuration = Utilities.boundToRange(animationDuration, in onDragEnd()
DNoButtonQuickSwitchTouchController.java346 float startXProgress = Utilities.boundToRange(xProgress in onDragEnd()
360 float startYProgress = Utilities.boundToRange(yProgress in onDragEnd()
DQuickSwitchTouchController.java144 updateFullscreenProgress(Utilities.boundToRange(progress, 0, 1)); in updateProgress()
/packages/apps/Launcher3/src/com/android/launcher3/dot/
DFolderDotInfo.java38 mNumNotifications = Utilities.boundToRange( in addDotInfo()
47 mNumNotifications = Utilities.boundToRange( in subtractDotInfo()
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DAnimatorPlaybackController.java18 import static com.android.launcher3.Utilities.boundToRange;
150 float nextFrameProgress = boundToRange(getProgressFraction() in startWithVelocity()
245 float progress = boundToRange(fraction, 0, 1); in setPlayFraction()
/packages/apps/Launcher3/src/com/android/launcher3/
DUtilities.java404 return mapToRange(boundToRange(t, lowerBound, upperBound), lowerBound, upperBound, in mapBoundToRange()
420 return boundToRange(a, 0, 1.0f); in saturate()
515 public static int boundToRange(int value, int lowerBound, int upperBound) { in boundToRange() method in Utilities
522 public static float boundToRange(float value, float lowerBound, float upperBound) { in boundToRange() method in Utilities
529 public static long boundToRange(long value, long lowerBound, long upperBound) { in boundToRange() method in Utilities
DLauncherAnimUtils.java69 return (int) Utilities.boundToRange(Math.abs(velocity) / 2, 2f, 6f); in blockedFlingDurationFactor()
DPagedView.java285 newPage = Utilities.boundToRange(newPage, 0, getPageCount() - 1); in validateNewPage()
450 x = Utilities.boundToRange(x, in scrollTo()
452 y = Utilities.boundToRange(y, in scrollTo()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/statehandlers/
DDepthController.java83 depthController.setDepth(Utilities.boundToRange(depth, mMinValue, mMaxValue)); in setValue()
242 depth = Utilities.boundToRange(depth, 0, 1); in setDepth()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DAbstractStateChangeTouchController.java306 startProgress = Utilities.boundToRange(progress in onDragEnd()
322 startProgress = Utilities.boundToRange(progress in onDragEnd()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DClipIconView.java18 import static com.android.launcher3.Utilities.boundToRange;
193 float shapeRevealProgress = boundToRange(mapToRange(max(shapeProgressStart, progress), in update()
DAbstractSlideInView.java163 displacement = Utilities.boundToRange(displacement, 0, range); in onDrag()
DRecyclerViewFastScroller.java435 top = Utilities.boundToRange(top, 0, in updatePopupY()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DFallbackSwipeHandler.java119 Utilities.boundToRange(1 - mCurrentShift.value, 0, 1)); in updateHomeActivityTransformDuringSwipeUp()
201 mHomeAlpha.value = Utilities.boundToRange(1 - mCurrentShift.value, 0, 1); in FallbackHomeAnimationFactory()
DLauncherSwipeHandlerV2.java21 import static com.android.launcher3.Utilities.boundToRange;
323 long playTime = boundToRange(round(duration * progress), 0, duration);
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DTransformParams.java156 float progress = Utilities.boundToRange(getProgress(), 0, 1); in createSurfaceParams()
DAnimatorControllerWithResistance.java104 float normalProgress = Utilities.boundToRange(progress, 0, 1); in setProgress()
DTaskViewSimulator.java264 float fullScreenProgress = Utilities.boundToRange(this.fullScreenProgress.value, 0, 1); in apply()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DWallpaperOffsetInterpolator.java105 adjustedScroll = Utilities.boundToRange(adjustedScroll, 0, scrollRange); in wallpaperOffsetForScroll()
/packages/apps/Launcher3/src/com/android/launcher3/pageindicators/
DWorkspacePageIndicator.java138 float progress = Utilities.boundToRange(((float) mCurrentScroll) / mTotalScroll, 0f, 1f); in onDraw()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolder.java1023 info.rank = Utilities.boundToRange(info.rank, 0, views.size()); in onDropCompleted()
1112 int left = Utilities.boundToRange(centeredLeft, sTempRect.left, sTempRect.right - width); in centerAboutIcon()
1113 int top = Utilities.boundToRange(centeredTop, sTempRect.top, sTempRect.bottom - height); in centerAboutIcon()
/packages/apps/Launcher3/src/com/android/launcher3/model/data/
DFolderInfo.java129 rank = Utilities.boundToRange(rank, 0, contents.size()); in add()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/
DSwipeUpGestureTutorialController.java283 final float startShift = Utilities.boundToRange(currentShift - velocityPxPerMs.y in handleSwipeUpToHome()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragView.java591 mSpring.animateToFinalPosition(Utilities.boundToRange(value, -mDelta, mDelta)); in animateToPos()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DRecentsView.java1459 mActionsView.getScrollAlpha().setValue(Utilities.boundToRange(delta, 0, 1)); in computeScrollHelper()
2366 Utilities.boundToRange(INITIAL_DISMISS_TRANSLATION_INTERPOLATION_OFFSET in createTaskDismissAnimation()
2393 clampToProgress(LINEAR, Utilities.boundToRange( in createTaskDismissAnimation()
2656 alpha = Utilities.boundToRange(alpha, 0, 1); in setContentAlpha()

12