Home
last modified time | relevance | path

Searched refs:mFactor (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/android/view/animation/
DAccelerateInterpolator.java37 private final float mFactor; field in AccelerateInterpolator
41 mFactor = 1.0f; in AccelerateInterpolator()
54 mFactor = factor; in AccelerateInterpolator()
55 mDoubleFactor = 2 * mFactor; in AccelerateInterpolator()
71 mFactor = a.getFloat(R.styleable.AccelerateInterpolator_factor, 1.0f); in AccelerateInterpolator()
72 mDoubleFactor = 2 * mFactor; in AccelerateInterpolator()
78 if (mFactor == 1.0f) { in getInterpolation()
88 return NativeInterpolatorFactoryHelper.createAccelerateInterpolator(mFactor); in createNativeInterpolator()
DDecelerateInterpolator.java48 mFactor = factor; in DecelerateInterpolator()
64 mFactor = a.getFloat(R.styleable.DecelerateInterpolator_factor, 1.0f); in DecelerateInterpolator()
71 if (mFactor == 1.0f) { in getInterpolation()
74 result = (float)(1.0f - Math.pow((1.0f - input), 2 * mFactor)); in getInterpolation()
79 private float mFactor = 1.0f; field in DecelerateInterpolator
84 return NativeInterpolatorFactoryHelper.createDecelerateInterpolator(mFactor); in createNativeInterpolator()
/frameworks/base/core/tests/coretests/src/android/view/
DScaleGesture.java32 private float mFactor; field in ScaleGesture
38 mFactor = 1.0f; in onCreate()
42 return mFactor; in getScaleFactor()
54 mFactor *= detector.getScaleFactor(); in onScale()
/frameworks/base/libs/hwui/
DInterpolator.h47 explicit AccelerateInterpolator(float factor) : mFactor(factor), mDoubleFactor(factor * 2) {} in AccelerateInterpolator()
51 const float mFactor;
89 explicit DecelerateInterpolator(float factor) : mFactor(factor) {} in DecelerateInterpolator()
93 const float mFactor;
DInterpolator.cpp37 if (mFactor == 1.0f) { in interpolate()
85 if (mFactor == 1.0f) { in interpolate()
88 result = 1.0f - pow((1.0f - input), 2 * mFactor); in interpolate()