Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/notification/
DNotificationMainView.java19 import static com.android.launcher3.Utilities.mapToRange;
255 setContentAlpha(mapToRange(absProgress, min, max, 1f, 0f, LINEAR)); in onPrimaryDrag()
256 setElevation(Utilities.mapToRange(absProgress, min, max, mMaxElevation, 0, LINEAR)); in onPrimaryDrag()
258 setAlpha(mapToRange(absProgress, max, PRIMARY_GONE_PROGRESS, 1f, 0f, LINEAR)); in onPrimaryDrag()
284 setAlpha(mapToRange(absProgress, min, max, 0, 1f, LINEAR)); in onSecondaryDrag()
291 : mapToRange(absProgress, max, contentMax, 0, 1f, LINEAR)); in onSecondaryDrag()
292 setElevation(Utilities.mapToRange(absProgress, max, 1, 0, mMaxElevation, LINEAR)); in onSecondaryDrag()
298 ? mapToRange(absProgress, PRIMARY_GONE_PROGRESS, 1f, mNotificationSpace, 0, LINEAR) in onSecondaryDrag()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarBackgroundRenderer.kt27 import com.android.launcher3.Utilities.mapToRange
155 mapToRange(paint.alpha.toFloat(), 0f, 255f, 0f, shadowAlpha, Interpolators.LINEAR) in draw()
DTaskbarStashViaTouchController.kt86 Utilities.mapToRange( in createSwipeListener()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DClipIconView.java19 import static com.android.launcher3.Utilities.mapToRange;
135 float shapeRevealProgress = boundToRange(mapToRange(max(shapeProgressStart, progress), in update()
DFloatingIconView.java22 import static com.android.launcher3.Utilities.mapToRange;
166 mFadeOutView.setAlpha(1 - Math.min(1f, mapToRange(progress, 0, 0.33f, 0, 1, LINEAR))); in update()
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DAnimatorPlaybackController.java179 return Utilities.mapToRange( in startWithVelocity()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DAllAppsEduView.java209 float stateProgress = Utilities.mapToRange(mDeltaY.value, 0, transY, 0, in playAnimation()
DRecentsView.java32 import static com.android.launcher3.Utilities.mapToRange;
1858 mapToRange(fullscreenProgress, 0, 0.1f, 1f, 0f, LINEAR)); in setFullscreenProgress()
/packages/apps/Launcher3/src/com/android/launcher3/
DUtilities.java382 public static float mapToRange(float t, float fromMin, float fromMax, float toMin, float toMax, in mapToRange() method in Utilities
395 return mapToRange(boundToRange(t, lowerBound, upperBound), lowerBound, upperBound, in mapBoundToRange()
DDeviceProfile.java380 bottomSheetDepth = Utilities.mapToRange(maxWallpaperScale * workspaceContentScale, in DeviceProfile()
DLauncher.java3307 float scale = Utilities.mapToRange(progress, 0f, 1f, 1f,
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DSwipeUpAnimationLogic.java220 return Utilities.mapToRange(progress, start, end, 1, 0, ACCEL_1_5); in getWindowAlpha()
DAbsSwipeUpHandler.java2283 scaleProgress = Utilities.mapToRange(scrollOffset, 0, mQuickSwitchScaleScrollThreshold,
2286 scaleProgress = Utilities.mapToRange(scrollOffset,
2316 return Utilities.mapToRange(displacement, mTaskbarAppWindowThreshold,
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/
DQuickstepLauncher.java739 getDepthController().widgetDepth.setValue(Utilities.mapToRange( in onWidgetsTransition()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/
DQuickstepTransitionManager.java2023 return Utilities.mapToRange(progress, start, end, 1, 0, ACCEL_1_5); in getWindowAlpha()