Home
last modified time | relevance | path

Searched refs:saturate (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/native/libs/ui/include_vndk/ui/
DColorSpace.h62 clamping_function clamper = saturate<float>
78 clamping_function clamper = saturate<float>
93 clamping_function clamper = saturate<float>
111 clamping_function clamper = saturate<float>
128 clamping_function clamper = saturate<float>
144 clamping_function clamper = saturate<float>
/frameworks/native/libs/ui/include_types/ui/
DColorSpace.h62 clamping_function clamper = saturate<float>
78 clamping_function clamper = saturate<float>
93 clamping_function clamper = saturate<float>
111 clamping_function clamper = saturate<float>
128 clamping_function clamper = saturate<float>
144 clamping_function clamper = saturate<float>
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DLockscreenShadeScrimTransitionController.kt63 scrimProgress = MathUtils.saturate(dragDownAmount / scrimTransitionDistance) in onDragDownAmountChanged()
66 MathUtils.saturate(notificationsScrimDragAmount / notificationsScrimTransitionDistance) in onDragDownAmountChanged()
DLockscreenShadeQsTransitionController.kt130 qsTransitionFraction = MathUtils.saturate(qsDragDownAmount / qsTransitionDistance) in onDragDownAmountChanged()
135 /* amount= */ MathUtils.saturate(qsDragDownAmount / qsSquishTransitionDistance) in onDragDownAmountChanged()
DLockscreenShadeKeyguardTransitionController.kt72 alphaProgress = MathUtils.saturate(dragDownAmount / alphaTransitionDistance) in onDragDownAmountChanged()
91 translationYProgress = MathUtils.saturate(dragDownAmount / keyguardTransitionDistance) in calculateKeyguardTranslationY()
DSingleShadeLockScreenOverScroller.kt57 val overallProgress = MathUtils.saturate(expansionDragDownAmount / viewHeight) in overScroll()
DLockscreenShadeTransitionController.kt418 MathUtils.saturate(dragDownAmount / notificationShelfTransitionDistance) in <lambda>()
446 MathUtils.saturate(dragDownAmount / depthControllerTransitionDistance) in <lambda>()
450 val udfpsProgress = MathUtils.saturate(dragDownAmount / udfpsTransitionDistance) in <lambda>()
454 val statusBarProgress = MathUtils.saturate(dragDownAmount / statusBarTransitionDistance) in <lambda>()
DSplitShadeLockScreenOverScroller.kt100 val fullHeightProgress: Float = MathUtils.saturate(dragDownAmount / fullHeight) in <lambda>()
DNotificationShadeDepthController.kt211 var zoomOut = MathUtils.saturate(blurUtils.ratioOfBlurRadius(shadeRadius)) in <lambda>()
351 val expansion = MathUtils.saturate( in <lambda>()
DNotificationShelf.java562 topValue = MathUtils.saturate(
574 bottomValue = MathUtils.saturate(
/frameworks/base/graphics/java/android/graphics/
DColor.java640 return saturate((float) ((0.2126 * r) + (0.7152 * g) + (0.0722 * b))); in luminance()
916 return new Color(saturate(r), saturate(g), saturate(b), saturate(a)); in valueOf()
1230 return saturate((float) ((0.2126 * r) + (0.7152 * g) + (0.0722 * b))); in luminance()
1233 private static float saturate(float v) { in saturate() method in Color
/frameworks/native/libs/math/include/math/
Dscalar.h25 static constexpr T saturate(T v) noexcept { in saturate() function
DTVecHelpers.h508 friend inline CONSTEXPR VECTOR<T> PURE saturate(const VECTOR<T>& lv) { in saturate() function
/frameworks/base/core/java/android/util/
DMathUtils.java184 public static float saturate(float value) { in saturate() method in MathUtils
190 return saturate(lerpInv(a, b, value)); in lerpInvSat()
/frameworks/base/packages/SystemUI/unfold/src/com/android/systemui/unfold/progress/
DPhysicsBasedUnfoldTransitionProgressProvider.kt107 val progress = saturate(angle / FINAL_HINGE_ANGLE_POSITION) in onHingeAngleUpdate()
111 private fun saturate(amount: Float, low: Float = 0f, high: Float = 1f): Float = in saturate() method
/frameworks/av/media/codec2/tests/vndk/
DC2BufferTest.cpp176 static_assert(C2Segment(123u, 456u).saturate() == C2Segment(123u, 456u), ""); in StaticSegmentTest()
177 static_assert(C2Segment(123u, ~123u).saturate() == C2Segment(123u, ~123u), ""); in StaticSegmentTest()
178 static_assert(C2Segment(123u, 1 + ~123u).saturate() == C2Segment(123u, ~123u), ""); in StaticSegmentTest()
181 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(150u, 1 + ~150u).saturate()).normalize() =… in StaticSegmentTest()
182 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(0u, 100u).saturate()).normalize() == C2Seg… in StaticSegmentTest()
183 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(1000u, 100u).saturate()).normalize() != C2… in StaticSegmentTest()
184 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(1000u, 100u).saturate()).normalize() == C2… in StaticSegmentTest()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/
DBackPanelController.kt554 val yProgress = MathUtils.saturate(yTranslation / (maxYOffset * rubberbandAmount)) in <lambda>()
568 return MathUtils.saturate(progress) in <lambda>()
576 return MathUtils.saturate(xTranslation / params.staticTriggerThreshold) in <lambda>()
580 return MathUtils.saturate(totalTouchDelta / params.reactivationTriggerThreshold) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardClockPositionAlgorithm.java368 float qsAlphaFactor = MathUtils.saturate(mQsExpansion / 0.3f); in getClockAlpha()
DHeadsUpAppearanceController.java444 float roundness = MathUtils.saturate(1f - mAppearFraction); in updateHeadsUpAndPulsingRoundness()
DKeyguardStatusBarViewController.java625 alpha = MathUtils.saturate(alpha); in getKeyguardContentsAlpha()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/view/
DMediaCarouselScrollHandler.kt261 val alpha = MathUtils.saturate(MathUtils.map(0.5f, 1.0f, 0.0f, 1.0f, settingsOffset)) in updateSettingsPresentation()
/frameworks/base/core/java/android/app/
DWallpaperColors.java553 dimAmount = MathUtils.saturate(dimAmount); in calculateDarkHints()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/
DMediaHierarchyManager.kt344 val progress = MathUtils.saturate(value / distanceForFullShadeTransition) in setTransitionToFullShadeAmount()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DQuickSettingsControllerImpl.java1500 top *= MathUtils.saturate(realFraction / minFraction); in calculateTopClippingBound()
2270 MathUtils.saturate(pxAmount / mDistanceForFullShadeTransition)); in setTransitionToFullShadeAmount()
/frameworks/av/media/codec2/core/include/
DC2Buffer.h333 inline constexpr C2Segment saturate() const { in saturate() function

12