Home
last modified time | relevance | path

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

12

/frameworks/base/libs/hwui/
DUvMapper.h72 if (!mIdentity) u = lerp(mMinU, mMaxU, u); in mapU()
79 if (!mIdentity) v = lerp(mMinV, mMaxV, v); in mapV()
91 texCoords.left = lerp(mMinU, mMaxU, texCoords.left); in map()
92 texCoords.right = lerp(mMinU, mMaxU, texCoords.right); in map()
93 texCoords.top = lerp(mMinV, mMaxV, texCoords.top); in map()
94 texCoords.bottom = lerp(mMinV, mMaxV, texCoords.bottom); in map()
103 u1 = lerp(mMinU, mMaxU, u1); in map()
104 u2 = lerp(mMinU, mMaxU, u2); in map()
105 v1 = lerp(mMinV, mMaxV, v1); in map()
106 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()
DInterpolator.cpp153 return MathUtils::lerp(v1, v2, weight); in interpolate()
/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 …]
DAudioResamplerSinc.h61 int32_t lerp, const int16_t* samples);
DAudioResamplerSinc.cpp599 int32_t lerp, const int16_t* samples) in interpolate() argument
603 int32_t sinc = mulAdd(lerp, (c1-c0)<<1, c0); in interpolate()
/frameworks/support/v7/appcompat/src/android/support/v7/graphics/drawable/
DDrawerArrowDrawable.java349 arrowHeadBarLength = lerp(mBarLength, arrowHeadBarLength, mProgress); in draw()
350 final float arrowShaftLength = lerp(mBarLength, mArrowShaftLength, mProgress); in draw()
352 final float arrowShaftCut = Math.round(lerp(0, mMaxCutForBarSize, mProgress)); in draw()
354 final float rotation = lerp(0, ARROW_HEAD_ANGLE, mProgress); in draw()
357 final float canvasRotate = lerp(flipToPointRight ? 0 : -180, in draw()
364 final float topBottomBarOffset = lerp(mBarGap + mPaint.getStrokeWidth(), -mMaxCutForBarSize, in draw()
463 private static float lerp(float a, float b, float t) { in lerp() method in DrawerArrowDrawable
/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/support/design/src/android/support/design/widget/
DCollapsingTextHelper.java350 mCurrentDrawX = lerp(mExpandedDrawX, mCollapsedDrawX, fraction, in calculateOffsets()
352 mCurrentDrawY = lerp(mExpandedDrawY, mCollapsedDrawY, fraction, in calculateOffsets()
355 setInterpolatedTextSize(lerp(mExpandedTextSize, mCollapsedTextSize, in calculateOffsets()
368 lerp(mExpandedShadowRadius, mCollapsedShadowRadius, fraction, null), in calculateOffsets()
369 lerp(mExpandedShadowDx, mCollapsedShadowDx, fraction, null), in calculateOffsets()
370 lerp(mExpandedShadowDy, mCollapsedShadowDy, fraction, null), in calculateOffsets()
469 mCurrentBounds.left = lerp(mExpandedBounds.left, mCollapsedBounds.left, in interpolateBounds()
471 mCurrentBounds.top = lerp(mExpandedDrawY, mCollapsedDrawY, in interpolateBounds()
473 mCurrentBounds.right = lerp(mExpandedBounds.right, mCollapsedBounds.right, in interpolateBounds()
475 mCurrentBounds.bottom = lerp(mExpandedBounds.bottom, mCollapsedBounds.bottom, in interpolateBounds()
[all …]
/frameworks/native/opengl/libagl/
Dprimitives.cpp556 c->lerp.initLine(v0, v1); in primitive_line()
584 c->lerp.initTriangle(v0, v1, v2); in primitive_clip_triangle()
635 c->lerp.initLerp(v0, enables); in lerp_triangle()
647 const compute_iterators_t& lerp = c->lerp; in lerp_triangle() local
654 lerp.iterators1616(&itc[i*3], c0, c1, c2); in lerp_triangle()
669 lerp.iterators0032(itz64, v0z, v1z, v2z); in lerp_triangle()
676 lerp.iterators0032(itz, v0z, v1z, v2z); in lerp_triangle()
680 lerp.iterators0032(itz, v0z, v1z, v2z); in lerp_triangle()
687 lerp.iterators1616(itf, v0->fog, v1->fog, v2->fog); in lerp_triangle()
702 const compute_iterators_t& lerp = c->lerp; in compute_lod() local
[all …]
Dcontext.h619 compute_iterators_t lerp __attribute__((aligned(32))); member
/frameworks/support/design/base/android/support/design/widget/
DAnimationUtils.java37 static float lerp(float startValue, float endValue, float fraction) { in lerp() method in AnimationUtils
41 static int lerp(int startValue, int endValue, float fraction) { in lerp() method in AnimationUtils
/frameworks/base/packages/EasterEgg/src/com/android/egg/octo/
DTaperedPathStroke.java30 static float lerp(float t, float a, float b) { in lerp() method in TaperedPathStroke
49 float r = len > 0 ? lerp(t/len, r1, r2) : r1; in drawPath()
/frameworks/base/cmds/input/src/com/android/commands/input/
DInput.java226 injectMotionEvent(inputSource, MotionEvent.ACTION_MOVE, now, lerp(x1, x2, alpha), in sendSwipe()
227 lerp(y1, y2, alpha), 1.0f); in sendSwipe()
251 injectMotionEvent(inputSource, MotionEvent.ACTION_MOVE, now, lerp(x1, x2, alpha), in sendDragAndDrop()
252 lerp(y1, y2, alpha), 1.0f); in sendDragAndDrop()
313 private static final float lerp(float a, float b, float alpha) { in lerp() method in Input
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DDeadZone.java97 static float lerp(float a, float b, float f) { in lerp() method in DeadZone
109 return (int) lerp(mSizeMax, mSizeMin, (float) (dt - mHold) / mDecay); in getSize()
/frameworks/base/graphics/java/android/graphics/drawable/
DRippleForeground.java197 return MathUtils.lerp(mClampedStartingX - mBounds.exactCenterX(), mTargetX, mTweenX); in getCurrentX()
201 return MathUtils.lerp(mClampedStartingY - mBounds.exactCenterY(), mTargetY, mTweenY); in getCurrentY()
211 return MathUtils.lerp(0, mTargetRadius, mTweenRadius); in getCurrentRadius()
DRotateDrawable.java314 final float degrees = MathUtils.lerp(mState.mFromDegrees, mState.mToDegrees, value); in onLevelChange()
/frameworks/native/libs/math/include/math/
Dscalar.h40 static constexpr T lerp(T x, T y, T a) noexcept { in lerp() function
DTQuatHelpers.h260 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/libs/hwui/utils/
DMathUtils.h90 inline static float lerp(float v1, float v2, float t) { in lerp() function
/frameworks/layoutlib/bridge/src/com/android/internal/view/animation/
DNativeInterpolatorFactoryHelper_Delegate.java132 return MathUtils.lerp(mValues[i1], mValues[i2], weight); in getInterpolation()
/frameworks/base/core/java/android/util/
DMathUtils.java152 public static float lerp(float start, float stop, float amount) { in lerp() method in MathUtils
/frameworks/native/libs/input/
DInputTransport.cpp66 inline static float lerp(float a, float b, float alpha) { in lerp() function
901 lerp(currentCoords.getX(), otherCoords.getX(), alpha)); in resampleTouchState()
903 lerp(currentCoords.getY(), otherCoords.getY(), alpha)); in resampleTouchState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
DMLand.java628 public static final float lerp(float x, float a, float b) {
645 return lerp(frand(), a, b);
1145 90 + lerp(clamp(rlerp(dv, PARAMS.MAX_V, -1 * PARAMS.MAX_V)), 90, -90));
/frameworks/base/services/core/java/com/android/server/display/
DNightDisplayService.java646 mResultMatrix[i] = MathUtils.lerp(startValue[i], endValue[i], fraction); in evaluate()

12