Home
last modified time | relevance | path

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

12

/packages/apps/Launcher3/src/com/android/launcher3/dot/
DFolderDotInfo.java38 mNumNotifications = Utilities.boundToRange( in addDotInfo()
47 mNumNotifications = Utilities.boundToRange( in subtractDotInfo()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/
DTaskViewTouchController.java301 Utilities.boundToRange(totalDisplacement * mProgressMultiplier / 2, 0, 1)); in onDrag()
325 Utilities.boundToRange(totalDisplacement * mProgressMultiplier, 0, 1)); in onDrag()
340 velocity = Utilities.boundToRange(velocity, -maxTaskDismissDragVelocity, in onDragEnd()
365 animationDuration = Utilities.boundToRange(animationDuration, in onDragEnd()
DNoButtonQuickSwitchTouchController.java366 float startXProgress = Utilities.boundToRange(xProgress in onDragEnd()
380 float startYProgress = Utilities.boundToRange(yProgress in onDragEnd()
DQuickSwitchTouchController.java149 updateFullscreenProgress(Utilities.boundToRange(progress, 0, 1)); in updateProgress()
/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/
DLauncherAnimUtils.java91 return (int) Utilities.boundToRange(Math.abs(velocity) / 2, 2f, 6f); in blockedFlingDurationFactor()
259 mProperty.set(t, Utilities.boundToRange(v, mMinValue, mMaxValue)); in setValue()
DUtilities.java395 return mapToRange(boundToRange(t, lowerBound, upperBound), lowerBound, upperBound, in mapBoundToRange()
493 public static int boundToRange(int value, int lowerBound, int upperBound) { in boundToRange() method in Utilities
500 public static float boundToRange(float value, float lowerBound, float upperBound) { in boundToRange() method in Utilities
507 public static long boundToRange(long value, long lowerBound, long upperBound) { in boundToRange() method in Utilities
DPagedView.java289 newPage = Utilities.boundToRange(newPage, 0, getPageCount() - 1); in validateNewPage()
519 x = Utilities.boundToRange(x, in scrollTo()
521 y = Utilities.boundToRange(y, in scrollTo()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DClipIconView.java18 import static com.android.launcher3.Utilities.boundToRange;
135 float shapeRevealProgress = boundToRange(mapToRange(max(shapeProgressStart, progress), in update()
DAbstractSlideInView.java267 displacement = Utilities.boundToRange(displacement, 0, range); in onDrag()
DRecyclerViewFastScroller.java434 top = Utilities.boundToRange(top, 0, in updatePopupY()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DAbstractStateChangeTouchController.java323 startProgress = Utilities.boundToRange(progress in onDragEnd()
339 startProgress = Utilities.boundToRange(progress in onDragEnd()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DMultiScalePropertyFactory.java94 mLastAggregatedValue = Utilities.boundToRange(multValue, minValue, maxValue); in setValue()
DWallpaperOffsetInterpolator.java114 adjustedScroll = Utilities.boundToRange(adjustedScroll, 0, scrollRange); in wallpaperOffsetForScroll()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DFallbackSwipeHandler.java132 Utilities.boundToRange(1 - mCurrentShift.value, 0, 1)); in updateHomeActivityTransformDuringSwipeUp()
254 mHomeAlpha.value = Utilities.boundToRange(1 - mCurrentShift.value, 0, 1); in FallbackHomeAnimationFactory()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DBaseDepthController.java151 depth = Utilities.boundToRange(depth, 0, 1);
DTransformParams.java157 float progress = Utilities.boundToRange(getProgress(), 0, 1); in createSurfaceParams()
DAnimatorControllerWithResistance.java112 float normalProgress = Utilities.boundToRange(progress, 0, 1); in setProgress()
/packages/apps/Launcher3/src/com/android/launcher3/pageindicators/
DWorkspacePageIndicator.java135 float progress = Utilities.boundToRange(((float) mCurrentScroll) / mTotalScroll, 0f, 1f); in onDraw()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DWorkProfileManager.java262 totalDelta = Utilities.boundToRange(totalDelta, in newScrollListener()
DActivityAllAppsContainerView.java617 float prog1 = Utilities.boundToRange((float) scrolledOffset / mHeaderThreshold, 0f, 1f); in updateHeaderScroll()
620 : (int) (Utilities.boundToRange( in updateHeaderScroll()
632 float prog = Utilities.boundToRange((float) scrolledOffset / mHeaderThreshold, 0f, 1f); in updateHeaderScroll()
DAllAppsRecyclerView.java169 int index = Utilities.boundToRange((int) (touchFraction * count), 0, count - 1); in scrollToPositionAtProgress()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DRecentsView.java3382 dismissTranslationInterpolationEnd = Utilities.boundToRange( in createTaskDismissAnimation()
3390 dismissTranslationInterpolationEnd = Utilities.boundToRange( in createTaskDismissAnimation()
3470 ? Utilities.boundToRange(splitTimings.getGridSlideStartOffset(), 0f, 1f) in createTaskDismissAnimation()
3471 : Utilities.boundToRange( in createTaskDismissAnimation()
3476 ? Utilities.boundToRange(splitTimings.getGridSlideStartOffset() in createTaskDismissAnimation()
3527 ? Utilities.boundToRange( in createTaskDismissAnimation()
3533 : Utilities.boundToRange( in createTaskDismissAnimation()
3538 ? Utilities.boundToRange( in createTaskDismissAnimation()
4039 alpha = Utilities.boundToRange(alpha, 0, 1); in setContentAlpha()
/packages/apps/Launcher3/src/com/android/launcher3/model/data/
DFolderInfo.java129 rank = Utilities.boundToRange(rank, 0, contents.size()); in add()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolder.java1033 info.rank = Utilities.boundToRange(info.rank, 0, views.size()); in onDropCompleted()
1121 int left = Utilities.boundToRange(centeredLeft, sTempRect.left, sTempRect.right - width); in centerAboutIcon()
1122 int top = Utilities.boundToRange(centeredTop, sTempRect.top, sTempRect.bottom - height); in centerAboutIcon()

12