Home
last modified time | relevance | path

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

/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/widget/
DWidgetImageView.java113 int left = Utilities.boundToRange( in updateDstRectF()
116 int top = Utilities.boundToRange( in updateDstRectF()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/touchcontrollers/
DTaskViewTouchController.java234 mCurrentAnimation.setPlayFraction(Utilities.boundToRange( in onDrag()
269 float nextFrameProgress = Utilities.boundToRange(
DQuickSwitchTouchController.java138 updateFullscreenProgress(Utilities.boundToRange(progress, 0, 1)); in updateProgress()
/packages/apps/Launcher3/src/com/android/launcher3/
DUtilities.java545 public static int boundToRange(int value, int lowerBound, int upperBound) { in boundToRange() method in Utilities
552 public static float boundToRange(float value, float lowerBound, float upperBound) { in boundToRange() method in Utilities
559 public static long boundToRange(long value, long lowerBound, long upperBound) { in boundToRange() method in Utilities
DLauncherAnimUtils.java67 return (int) Utilities.boundToRange(Math.abs(velocity) / 2, 2f, 6f); in blockedFlingDurationFactor()
DFolderInfo.java75 rank = Utilities.boundToRange(rank, 0, contents.size()); in add()
DPagedView.java273 return Utilities.boundToRange(newPage, 0, getPageCount() - 1); in validateNewPage()
1050 int x = Utilities.boundToRange(getScrollX(), mMinScrollX, mMaxScrollX); in dampedOverScroll()
DAppWidgetResizeFrame.java559 return Utilities.boundToRange(value, start, end); in clamp()
DWorkspace.java1303 leftScreen = Utilities.boundToRange(getCurrentPage() - 1, 0, rightScreen); in enableHwLayersOnVisiblePages()
1304 rightScreen = Utilities.boundToRange(getCurrentPage() + 1, in enableHwLayersOnVisiblePages()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DAbstractStateChangeTouchController.java416 startProgress = Utilities.boundToRange( in onDragEnd()
434 startProgress = Utilities.boundToRange( in onDragEnd()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DAbstractSlideInView.java133 displacement = Utilities.boundToRange(displacement, 0, range); in onDrag()
DRecyclerViewFastScroller.java382 top = Utilities.boundToRange(top, 0, in updatePopupY()
DFloatingIconView.java233 float shapeRevealProgress = Utilities.boundToRange(mapToRange( in update()
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DInterpolators.java197 overshootBy = Utilities.boundToRange(overshootBy, 0.02f, 0.15f);
/packages/apps/Launcher3/src/com/android/launcher3/util/
DWallpaperOffsetInterpolator.java103 adjustedScroll = Utilities.boundToRange(adjustedScroll, 0, scrollRange); in wallpaperOffsetForScroll()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/
DWindowTransformSwipeHandler.java972 startShift = Utilities.boundToRange(currentShift - velocityPxPerMs.y in handleNormalGestureEnd()
983 duration = Utilities.boundToRange(overshoot.duration, MIN_OVERSHOOT_DURATION, in handleNormalGestureEnd()
1183 float windowAlpha = Utilities.boundToRange(Utilities.mapToRange(alphaProgress, 0, in createWindowAnimationToHome()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DTaskView.java504 mFooterAlpha = Utilities.boundToRange(1.0f - 2 * scrollState.linearInterpolation, 0f, 1f); in onPageScroll()
801 progress = Utilities.boundToRange(progress, 0, 1); in setFullscreenProgress()
DTaskThumbnailView.java389 intensity = Utilities.boundToRange(intensity, 0, 255); in getColorFilter()
DRecentsView.java1300 alpha = Utilities.boundToRange(alpha, 0, 1); in setContentAlpha()
/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_ui_overrides/com/android/launcher3/uioverrides/dynamicui/
DColorExtractionAlgorithm.java198 fitData[i] = Utilities.boundToRange(data[i] + delta, min, max); in fit()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragView.java609 mSpring.animateToFinalPosition(Utilities.boundToRange(value, -mDelta, mDelta)); in animateToPos()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsContainerView.java149 super.setDampedScrollShift(Utilities.boundToRange(shift, -maxShift, maxShift)); in setDampedScrollShift()