/frameworks/base/libs/hwui/ |
D | UvMapper.h | 69 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 …]
|
D | PropertyValuesHolder.cpp | 29 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()
|
D | Interpolator.cpp | 156 return MathUtils::lerp(v1, v2, weight); in interpolate()
|
/frameworks/av/media/libaudioprocessing/ |
D | AudioResamplerFirProcess.h | 114 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 …]
|
D | AudioResamplerSinc.h | 61 int32_t lerp, const int16_t* samples);
|
/frameworks/native/opengl/tests/angeles/ |
D | demo.c | 704 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/CarSystemUI/src/com/android/systemui/statusbar/hvac/ |
D | TemperatureColorStore.java | 133 outColor[1] = lerp(fraction, startHsv[1], endHsv[1]); in lerpColor() 134 outColor[2] = lerp(fraction, startHsv[2], endHsv[2]); in lerpColor() 155 return lerp(fraction, start, end) % 360f; in hueLerp() 159 private float lerp(float fraction, float start, float end) { in lerp() method in TemperatureColorStore
|
/frameworks/native/opengl/libagl/ |
D | primitives.cpp | 557 c->lerp.initLine(v0, v1); in primitive_line() 585 c->lerp.initTriangle(v0, v1, v2); in primitive_clip_triangle() 636 c->lerp.initLerp(v0, enables); in lerp_triangle() 648 const compute_iterators_t& lerp = c->lerp; in lerp_triangle() local 655 lerp.iterators1616(&itc[i*3], c0, c1, c2); in lerp_triangle() 670 lerp.iterators0032(itz64, v0z, v1z, v2z); in lerp_triangle() 677 lerp.iterators0032(itz, v0z, v1z, v2z); in lerp_triangle() 681 lerp.iterators0032(itz, v0z, v1z, v2z); in lerp_triangle() 688 lerp.iterators1616(itf, v0->fog, v1->fog, v2->fog); in lerp_triangle() 703 const compute_iterators_t& lerp = c->lerp; in compute_lod() local [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | KeyguardClockPositionAlgorithm.java | 227 float clockY = MathUtils.lerp(clockYBouncer, clockYRegular, shadeExpansion); in getClockY() 228 clockYDark = MathUtils.lerp(clockYBouncer, clockYDark, shadeExpansion); in getClockY() 231 return (int) (MathUtils.lerp(clockY, clockYDark, darkAmount) + mEmptyDragAmount); in getClockY() 245 return MathUtils.lerp(alphaKeyguard, 1f, mDarkAmount); in getClockAlpha()
|
D | ScrimController.java | 465 mCurrentBehindAlpha = MathUtils.lerp(GRADIENT_SCRIM_ALPHA_BUSY, alphaBehind, in applyExpansionToAlpha() 469 mCurrentBehindAlpha = MathUtils.lerp(0 /* start */, alphaBehind, in applyExpansionToAlpha() 673 float alpha = MathUtils.lerp(startAlpha, finalScrimAlpha, animAmount); in startScrimAnimation()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/ |
D | BrightnessUtils.java | 64 return Math.round(MathUtils.lerp(min, max, ret / 12)); in convertGammaToLinear() 99 return Math.round(MathUtils.lerp(0, GAMMA_SPACE_MAX, ret)); in convertLinearToGamma()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | ActivityLaunchAnimator.java | 197 int newWidth = (int) MathUtils.lerp(notificationWidth, in onAnimationStart() 201 mParams.top = (int) MathUtils.lerp(mParams.startPosition[1], in onAnimationStart() 203 mParams.bottom = (int) MathUtils.lerp(mParams.startPosition[1] in onAnimationStart() 207 mCornerRadius = MathUtils.lerp(mNotificationCornerRadius, in onAnimationStart() 321 clipTopAmountCompensation = (int) MathUtils.lerp(0, startClipTopAmount, in getTopChange()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/ |
D | ClockLayout.java | 93 final float offsetX = MathUtils.lerp(0f, in positionChildren() 96 final float offsetY = MathUtils.lerp(0f, in positionChildren()
|
D | SmallClockPosition.java | 75 return (int) MathUtils.lerp(lockY, aodY, mDarkAmount); in getPreferredY()
|
D | ClockPalette.kt | 49 hsv[i] = MathUtils.lerp(darkHSV[i], lightHSV[i], darkAmount) in getSecondaryColor()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/util/ |
D | BurnInHelper.kt | 50 return MathUtils.lerp(0f, amplitude, interpolationAmount) in zigzag()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | DeadZone.java | 77 static float lerp(float a, float b, float f) { in lerp() method in DeadZone 89 return (int) lerp(mSizeMax, mSizeMin, (float) (dt - mHold) / mDecay); in getSize()
|
/frameworks/native/libs/math/include/math/ |
D | scalar.h | 40 static constexpr T lerp(T x, T y, T a) noexcept { in lerp() function
|
D | TQuatHelpers.h | 260 constexpr QUATERNION<T> PURE lerp(const QUATERNION<T>& p, const QUATERNION<T>& q, T t) { in lerp() function 266 return normalize(lerp(p, q, t)); in nlerp()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | RippleForeground.java | 316 return MathUtils.lerp(mClampedStartingX - mBounds.exactCenterX(), mTargetX, mTweenX); in getCurrentX() 320 return MathUtils.lerp(mClampedStartingY - mBounds.exactCenterY(), mTargetY, mTweenY); in getCurrentY() 324 return MathUtils.lerp(mStartRadius, mTargetRadius, mTweenRadius); in getCurrentRadius()
|
/frameworks/base/core/java/android/util/ |
D | MathUtils.java | 164 public static float lerp(float start, float stop, float amount) { in lerp() method in MathUtils 240 return lerp(rangeMin, rangeMax, lerpInvSat(valueMin, valueMax, value)); in constrainedMap()
|
/frameworks/base/libs/hwui/utils/ |
D | MathUtils.h | 90 inline static float lerp(float v1, float v2, float t) { return v1 + ((v2 - v1) * t); } in lerp() function
|
/frameworks/base/cmds/input/src/com/android/commands/input/ |
D | Input.java | 273 lerp(x1, x2, alpha), lerp(y1, y2, alpha), 1.0f, displayId); in sendSwipe() 401 private static final float lerp(float a, float b, float alpha) { in lerp() method in Input
|
/frameworks/layoutlib/bridge/src/com/android/internal/view/animation/ |
D | NativeInterpolatorFactoryHelper_Delegate.java | 132 return MathUtils.lerp(mValues[i1], mValues[i2], weight); in getInterpolation()
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/ |
D | PaintActivity.java | 131 static final float lerp(float f, float a, float b) { in lerp() method in PaintActivity 233 final float width = lerp( in refreshBrushAndColor()
|