Home
last modified time | relevance | path

Searched refs:lerp (Results 1 – 25 of 75) sorted by relevance

123

/frameworks/base/libs/hwui/
DUvMapper.h69 if (!mIdentity) u = lerp(mMinU, mMaxU, u); in mapU()
76 if (!mIdentity) v = lerp(mMinV, mMaxV, v); in mapV()
88 texCoords.left = lerp(mMinU, mMaxU, texCoords.left); in map()
89 texCoords.right = lerp(mMinU, mMaxU, texCoords.right); in map()
90 texCoords.top = lerp(mMinV, mMaxV, texCoords.top); in map()
91 texCoords.bottom = lerp(mMinV, mMaxV, texCoords.bottom); in map()
100 u1 = lerp(mMinU, mMaxU, u1); in map()
101 u2 = lerp(mMinU, mMaxU, u2); in map()
102 v1 = lerp(mMinV, mMaxV, v1); in map()
103 v2 = lerp(mMinV, mMaxV, v2); in map()
[all …]
DPropertyValuesHolder.cpp29 inline constexpr float lerp(float fromValue, float toValue, float fraction) { in lerp() function
40 float a = lerp(SkColorGetA(fromColor) / 255.0f, SkColorGetA(toColor) / 255.0f, fraction); in evaluate()
41 float r = lerp(linearize(SkColorGetR(fromColor)), linearize(SkColorGetR(toColor)), fraction); in evaluate()
42 float g = lerp(linearize(SkColorGetG(fromColor)), linearize(SkColorGetG(toColor)), fraction); in evaluate()
43 float b = lerp(linearize(SkColorGetB(fromColor)), linearize(SkColorGetB(toColor)), fraction); in evaluate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/animation/
DTransitionLayoutController.kt104 width = MathUtils.lerp( in getGoneState()
108 height = MathUtils.lerp( in getGoneState()
162 newScale = MathUtils.lerp(GONE_SCALE_AMOUNT * endScale, endScale, progress) in getInterpolatedState()
173 resultX = MathUtils.lerp(widgetStart.x - resultMeasureWidth / 2.0f, in getInterpolatedState()
176 resultY = MathUtils.lerp(widgetStart.y - resultMeasureHeight / 2.0f, in getInterpolatedState()
188 newScale = MathUtils.lerp(startScale, startScale * GONE_SCALE_AMOUNT, progress) in getInterpolatedState()
199 resultX = MathUtils.lerp(widgetStart.x, in getInterpolatedState()
202 resultY = MathUtils.lerp(widgetStart.y, in getInterpolatedState()
212 newScale = MathUtils.lerp(widgetStart.scale, widgetEnd.scale, progress) in getInterpolatedState()
213 resultX = MathUtils.lerp(widgetStart.x, widgetEnd.x, progress) in getInterpolatedState()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/
DFontInterpolatorTest.kt62 assertSameAxes(startFont, interp.lerp(startFont, endFont, 0f)) in <lambda>()
63 assertSameAxes(endFont, interp.lerp(startFont, endFont, 1f)) in <lambda>()
64 assertSameAxes("'wght' 496, 'ital' 0.5, 'GRAD' 450", interp.lerp(startFont, endFont, 0.5f)) in <lambda>()
77 assertSameAxes("'wght' 249, 'ital' 0.5", interp.lerp(startFont, endFont, 0.5f)) in <lambda>()
90 val resultFont = interp.lerp(startFont, endFont, 0.5f) in <lambda>()
91 val cachedFont = interp.lerp(startFont, endFont, 0.5f) in <lambda>()
105 val resultFont = interp.lerp(startFont, endFont, 0.5f) in <lambda>()
106 val reversedFont = interp.lerp(endFont, startFont, 0.5f) in <lambda>()
120 val resultFont = interp.lerp(startFont, endFont, 0.5f) in <lambda>()
128 interp.lerp(f1, f2, 0.5f) in <lambda>()
[all …]
/frameworks/av/media/libaudioprocessing/
DAudioResamplerFirProcess.h114 TC interpolate(TC coef_0, TC coef_1, TINTERP lerp) in interpolate() argument
116 return lerp * (coef_1 - coef_0) + coef_0; in interpolate()
121 int16_t interpolate<int16_t, uint32_t>(int16_t coef_0, int16_t coef_1, uint32_t lerp)
123 return (static_cast<int16_t>(lerp) * static_cast<int16_t>(coef_1 - coef_0) >> 15) + coef_0;
128 int32_t interpolate<int32_t, uint32_t>(int32_t coef_0, int32_t coef_1, uint32_t lerp)
130 return (lerp * static_cast<int64_t>(coef_1 - coef_0) >> 31) + coef_0;
137 TC interpolatep(TC coef_0, TC coef_1, TINTERP lerp) { in interpolatep()
138 return interpolate(coef_0, coef_1, lerp); in interpolatep()
143 TC interpolaten(TC coef_0, TC coef_1, TINTERP lerp) { in interpolaten()
144 return interpolate(coef_0, coef_1, lerp); in interpolaten()
[all …]
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
DTextInterpolator.kt204 lerp(basePaint, targetPaint, progress, tmpPaint) in <lambda>()
211 run.baseX[i] = MathUtils.lerp(run.baseX[i], run.targetX[i], progress) in <lambda>()
212 run.baseY[i] = MathUtils.lerp(run.baseY[i], run.targetY[i], progress) in <lambda>()
215 it.baseFont = fontInterpolator.lerp(it.baseFont, it.targetFont, progress) in <lambda>()
229 lerp(basePaint, targetPaint, progress, tmpPaint) in <lambda>()
350 val font = fontInterpolator.lerp(run.baseFont, run.targetFont, progress) in <lambda>()
356 MathUtils.lerp(line.baseX[i], line.targetX[i], progress) in <lambda>()
358 MathUtils.lerp(line.baseY[i], line.targetY[i], progress) in <lambda>()
375 tmpGlyph.x = MathUtils.lerp(line.baseX[i], line.targetX[i], progress) in <lambda>()
376 tmpGlyph.y = MathUtils.lerp(line.baseY[i], line.targetY[i], progress) in <lambda>()
[all …]
DFontInterpolator.kt98 fun lerp(start: Font, end: Font, progress: Float): Font { in <lambda>() method
125 lerp(startAxes, endAxes) { tag, startValue, endValue -> in <lambda>()
130 MathUtils.lerp( in <lambda>()
141 MathUtils.lerp( in <lambda>()
151 MathUtils.lerp(startValue, endValue, progress) in <lambda>()
174 private fun lerp( in <lambda>() method
DLaunchAnimator.kt327 val xCenter = MathUtils.lerp(startCenterX, endCenterX, xProgress) in <lambda>()
328 val halfWidth = MathUtils.lerp(startWidth, endWidth, progress) / 2f in <lambda>()
330 state.top = MathUtils.lerp(startTop, endTop, progress).roundToInt() in <lambda>()
331 state.bottom = MathUtils.lerp(startBottom, endBottom, progress).roundToInt() in <lambda>()
336 MathUtils.lerp(startTopCornerRadius, endTopCornerRadius, progress) in <lambda>()
338 MathUtils.lerp(startBottomCornerRadius, endBottomCornerRadius, progress) in <lambda>()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/
DBrightnessUtils.java65 return Math.round(MathUtils.lerp(min, max, ret / 12)); in convertGammaToLinear()
92 return MathUtils.lerp(min, max, normalizedRet / 12); in convertGammaToLinearFloat()
139 return Math.round(MathUtils.lerp(GAMMA_SPACE_MIN, GAMMA_SPACE_MAX, ret)); in convertLinearToGammaFloat()
/frameworks/native/opengl/tests/angeles/
Ddemo.c704 float lerp[5]; in camTrack() local
724 lerp[a] = (cam->src[a] + cam->dest[a] * trackPos) * 0.01f; in camTrack()
729 cX = lerp[0]; in camTrack()
730 cY = lerp[1]; in camTrack()
731 cZ = lerp[2]; in camTrack()
732 eX = cX - (float)cos(lerp[3]) * dist; in camTrack()
733 eY = cY - (float)sin(lerp[3]) * dist; in camTrack()
734 eZ = cZ - lerp[4]; in camTrack()
738 eX = lerp[0]; in camTrack()
739 eY = lerp[1]; in camTrack()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardClockPositionAlgorithm.java262 float clockY = MathUtils.lerp(clockYBouncer, clockYRegular, shadeExpansion); in getClockY()
298 mCurrentBurnInOffsetY = MathUtils.lerp(0, fullyDarkBurnInOffset, darkAmount); in getClockY()
299 return (int) (MathUtils.lerp(clockY, clockYDark, darkAmount) + mOverStretchAmount); in getClockY()
308 float userSwitchY = MathUtils.lerp(userSwitchYBouncer, userSwitchYRegular, shadeExpansion); in getUserSwitcherY()
330 return MathUtils.lerp(alphaKeyguard, 1f, mDarkAmount); in getClockAlpha()
/frameworks/base/core/java/android/util/
DMathUtils.java164 public static float lerp(float start, float stop, float amount) { in lerp() method in MathUtils
168 public static float lerp(int start, int stop, float amount) { in lerp() method in MathUtils
169 return lerp((float) start, (float) stop, amount); in lerp()
244 return lerp(rangeMin, rangeMax, lerpInvSat(valueMin, valueMax, value)); in constrainedMap()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/
DClockLayout.java93 final float offsetX = MathUtils.lerp(0f, in positionChildren()
96 final float offsetY = MathUtils.lerp(0f, in positionChildren()
DSmallClockPosition.java76 return (int) MathUtils.lerp(lockY, aodY, mDarkAmount); in getPreferredY()
/frameworks/base/services/core/java/com/android/server/vibrator/
DRampToStepAdapter.java86 MathUtils.lerp(ramp.getStartAmplitude(), ramp.getEndAmplitude(), pos), in apply()
87 MathUtils.lerp(startFrequencyHz, endFrequencyHz, pos), in apply()
DStepToRampAdapter.java128 MathUtils.lerp(startFrequencyHz, endFrequencyHz, durationRatio); in splitRampSegment()
130 MathUtils.lerp(ramp.getStartAmplitude(), ramp.getEndAmplitude(), durationRatio); in splitRampSegment()
/frameworks/base/core/java/com/android/internal/graphics/cam/
DFrame.java148 float c = (f >= 0.9) ? MathUtils.lerp(0.59f, 0.69f, ((f - 0.9f) * 10.0f)) : MathUtils.lerp( in make()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUdfpsKeyguardView.java129 mBurnInOffsetX = MathUtils.lerp(0f, in updateBurnInOffsets()
132 mBurnInOffsetY = MathUtils.lerp(0f, in updateBurnInOffsets()
135 mBurnInProgress = MathUtils.lerp(0f, getBurnInProgressOffset(), darkAmountForAnimation); in updateBurnInOffsets()
DDwellRippleShader.kt111 setFloatUniform("in_blur", MathUtils.lerp(1f, 0.7f, value))
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/
DLightSourceDrawable.kt36 import android.util.MathUtils.lerp
126 val radius = lerp(rippleData.minSize, rippleData.maxSize, rippleData.progress) in draw()
261 val radius = lerp(rippleData.minSize, rippleData.maxSize, rippleData.progress) in getDirtyBounds()
/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/
DClipboardOverlayView.java323 float previewScale = MathUtils.lerp(.9f, 1f, animation.getAnimatedFraction()); in getEnterAnimation()
334 float actionsScaleX = MathUtils.lerp(.7f, 1f, animation.getAnimatedFraction()); in getEnterAnimation()
335 float actionsScaleY = MathUtils.lerp(.9f, 1f, animation.getAnimatedFraction()); in getEnterAnimation()
385 float previewScale = MathUtils.lerp(1f, .9f, animation.getAnimatedFraction()); in getExitAnimation()
396 float actionScaleX = MathUtils.lerp(1f, .8f, animation.getAnimatedFraction()); in getExitAnimation()
397 float actionScaleY = MathUtils.lerp(1f, .9f, animation.getAnimatedFraction()); in getExitAnimation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/ui/
DDotIndicatorDecoration.java120 float radius = MathUtils.lerp(mSelectedRadius, mUnselectedRadius, progress / 2); in drawSelectedDot()
131 float radius = MathUtils.lerp(mUnselectedRadius, mSelectedColor, progress / 2); in drawFadingUnselectedDot()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/util/
DBurnInHelper.kt69 return MathUtils.lerp(0f, amplitude, interpolationAmount) in zigzag()
/frameworks/base/core/java/android/inputmethodservice/navigationbar/
DDeadZone.java90 static float lerp(float a, float b, float f) { in lerp() method in DeadZone
104 return (int) lerp(mSizeMax, mSizeMin, (float) (dt - mHold) / mDecay); in getSize()
/frameworks/native/libs/math/include/math/
Dscalar.h40 static constexpr T lerp(T x, T y, T a) noexcept { in lerp() function

123