Home
last modified time | relevance | path

Searched refs:boundToRange (Results 1 – 25 of 25) 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.java237 mCurrentAnimation.setPlayFraction(Utilities.boundToRange( in onDrag()
273 float nextFrameProgress = Utilities.boundToRange(progress
DNoButtonQuickSwitchTouchController.java372 float startXProgress = Utilities.boundToRange(xProgress in onDragEnd()
386 float startYProgress = Utilities.boundToRange(yProgress in onDragEnd()
DQuickSwitchTouchController.java141 updateFullscreenProgress(Utilities.boundToRange(progress, 0, 1)); in updateProgress()
/packages/apps/Launcher3/src/com/android/launcher3/
DUtilities.java420 public static int boundToRange(int value, int lowerBound, int upperBound) { in boundToRange() method in Utilities
427 public static float boundToRange(float value, float lowerBound, float upperBound) { in boundToRange() method in Utilities
434 public static long boundToRange(long value, long lowerBound, long upperBound) { in boundToRange() method in Utilities
DFolderInfo.java75 rank = Utilities.boundToRange(rank, 0, contents.size() + 1); in add()
DLauncherAnimUtils.java67 return (int) Utilities.boundToRange(Math.abs(velocity) / 2, 2f, 6f); in blockedFlingDurationFactor()
DPagedView.java273 return Utilities.boundToRange(newPage, 0, getPageCount() - 1); in validateNewPage()
1054 int x = Utilities.boundToRange(getScrollX(), mMinScrollX, mMaxScrollX); in dampedOverScroll()
DAppWidgetResizeFrame.java559 return Utilities.boundToRange(value, start, end); in clamp()
DWorkspace.java1312 leftScreen = Utilities.boundToRange(getCurrentPage() - 1, 0, rightScreen); in enableHwLayersOnVisiblePages()
1313 rightScreen = Utilities.boundToRange(getCurrentPage() + 1, in enableHwLayersOnVisiblePages()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DAbstractStateChangeTouchController.java408 startProgress = Utilities.boundToRange(progress in onDragEnd()
423 startProgress = Utilities.boundToRange(progress in onDragEnd()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DAbstractSlideInView.java135 displacement = Utilities.boundToRange(displacement, 0, range); in onDrag()
DRecyclerViewFastScroller.java382 top = Utilities.boundToRange(top, 0, in updatePopupY()
DFloatingIconView.java237 float shapeRevealProgress = Utilities.boundToRange(mapToRange( in update()
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DInterpolators.java201 overshootBy = Utilities.boundToRange(overshootBy, 0.02f, 0.15f);
/packages/apps/Launcher3/src/com/android/launcher3/util/
DWallpaperOffsetInterpolator.java105 adjustedScroll = Utilities.boundToRange(adjustedScroll, 0, scrollRange); in wallpaperOffsetForScroll()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DTaskView.java494 mFooterAlpha = Utilities.boundToRange(1.0f - 2 * scrollState.linearInterpolation, 0f, 1f); in onPageScroll()
791 progress = Utilities.boundToRange(progress, 0, 1); in setFullscreenProgress()
DTaskThumbnailView.java426 intensity = Utilities.boundToRange(intensity, 0, 255); in getColorFilter()
DRecentsView.java1330 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/quickstep/recents_ui_overrides/src/com/android/quickstep/
DWindowTransformSwipeHandler.java777 startShift = Utilities.boundToRange(currentShift - velocityPxPerMs.y in handleNormalGestureEnd()
788 duration = Utilities.boundToRange(overshoot.duration, MIN_OVERSHOOT_DURATION, in handleNormalGestureEnd()
/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.java147 super.setDampedScrollShift(Utilities.boundToRange(shift, -maxShift, maxShift)); in setDampedScrollShift()