HomeSort by relevance Sort by last modified time
    Searched refs:startValue (Results 1 - 25 of 82) sorted by null

1 2 3 4

  /frameworks/base/core/java/android/animation/
RectEvaluator.java 66 * @param startValue The start Rect
72 public Rect evaluate(float fraction, Rect startValue, Rect endValue) {
73 int left = startValue.left + (int) ((endValue.left - startValue.left) * fraction);
74 int top = startValue.top + (int) ((endValue.top - startValue.top) * fraction);
75 int right = startValue.right + (int) ((endValue.right - startValue.right) * fraction);
76 int bottom = startValue.bottom + (int) ((endValue.bottom - startValue.bottom) * fraction)
    [all...]
FloatEvaluator.java 28 * where <code>x0</code> is <code>startValue</code>, <code>x1</code> is <code>endValue</code>,
32 * @param startValue The start value; should be of type <code>float</code> or
38 public Float evaluate(float fraction, Number startValue, Number endValue) {
39 float startFloat = startValue.floatValue();
IntEvaluator.java 28 * where <code>x0</code> is <code>startValue</code>, <code>x1</code> is <code>endValue</code>,
32 * @param startValue The start value; should be of type <code>int</code> or
38 public Integer evaluate(float fraction, Integer startValue, Integer endValue) {
39 int startInt = startValue;
PointFEvaluator.java 66 * @param startValue The start PointF
72 public PointF evaluate(float fraction, PointF startValue, PointF endValue) {
73 float x = startValue.x + (fraction * (endValue.x - startValue.x));
74 float y = startValue.y + (fraction * (endValue.y - startValue.y));
FloatArrayEvaluator.java 58 * @param startValue The start value.
61 * the same index in startValue and endValue.
64 public float[] evaluate(float fraction, float[] startValue, float[] endValue) {
67 array = new float[startValue.length];
71 float start = startValue[i];
IntArrayEvaluator.java 57 * @param startValue The start value.
60 * the same index in startValue and endValue.
63 public int[] evaluate(float fraction, int[] startValue, int[] endValue) {
66 array = new int[startValue.length];
69 int start = startValue[i];
TypeEvaluator.java 33 * where <code>x0</code> is <code>startValue</code>, <code>x1</code> is <code>endValue</code>,
37 * @param startValue The start value.
42 public T evaluate(float fraction, T startValue, T endValue);
ArgbEvaluator.java 45 * @param startValue A 32-bit int value representing colors in the
54 public Object evaluate(float fraction, Object startValue, Object endValue) {
55 int startInt = (Integer) startValue;
PathKeyframes.java 149 private static float interpolate(float fraction, float startValue, float endValue) {
150 float diff = endValue - startValue;
151 return startValue + (diff * fraction);
  /packages/apps/Messaging/src/com/android/messaging/ui/animation/
RectEvaluatorCompat.java 38 public Rect evaluate(float fraction, Rect startValue, Rect endValue) {
39 int left = startValue.left + (int) ((endValue.left - startValue.left) * fraction);
40 int top = startValue.top + (int) ((endValue.top - startValue.top) * fraction);
41 int right = startValue.right + (int) ((endValue.right - startValue.right) * fraction);
42 int bottom = startValue.bottom + (int) ((endValue.bottom - startValue.bottom) * fraction);
  /frameworks/support/design/base/android/support/design/widget/
AnimationUtils.java 32 * Linear interpolation between {@code startValue} and {@code endValue} by {@code fraction}.
34 static float lerp(float startValue, float endValue, float fraction) {
35 return startValue + (fraction * (endValue - startValue));
38 static int lerp(int startValue, int endValue, float fraction) {
39 return startValue + Math.round(fraction * (endValue - startValue));
  /development/samples/devbytes/animation/CurvedMotion/src/com/example/android/curvedmotion/
PathEvaluator.java 28 public PathPoint evaluate(float t, PathPoint startValue, PathPoint endValue) {
32 x = oneMinusT * oneMinusT * oneMinusT * startValue.mX +
36 y = oneMinusT * oneMinusT * oneMinusT * startValue.mY +
41 x = startValue.mX + t * (endValue.mX - startValue.mX);
42 y = startValue.mY + t * (endValue.mY - startValue.mY);
  /external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/solvers/
NewtonSolver.java 69 public double solve(final double min, final double max, final double startValue)
71 return solve(f, min, max, startValue);
114 * Find a zero near the value <code>startValue</code>.
119 * @param startValue the start value to use.
124 * @throws IllegalArgumentException if startValue is not between min and max or
129 final double min, final double max, final double startValue)
132 return solve(f, min, max, startValue);
136 * Find a zero near the value <code>startValue</code>.
141 * @param startValue the start value to use.
145 * @throws IllegalArgumentException if startValue is not between min and max o
    [all...]
UnivariateRealSolver.java 104 * Solve for a zero in the given interval, start at startValue.
111 * @param startValue the start value to use
122 double solve(double min, double max, double startValue)
126 * Solve for a zero in the given interval, start at startValue.
134 * @param startValue the start value to use
145 double solve(UnivariateRealFunction f, double min, double max, double startValue)
  /external/jsilver/src/com/google/clearsilver/jsilver/functions/string/
SliceFunction.java 39 Value startValue = args[1];
42 int start = startValue.asNumber();
65 || startValue.isPartiallyEscaped() || endValue.isPartiallyEscaped());
  /external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/
UnivariateRealOptimizer.java 75 * Find an optimum in the given interval, start at startValue.
84 * @param startValue the start value to use.
94 double min, double max, double startValue)
  /packages/apps/Launcher2/src/com/android/launcher2/
InterruptibleInOutAnimator.java 65 final float startValue = mFirstRun ? mOriginalFromValue :
71 // TODO: We don't really need to do the animation if startValue == toValue, but
79 mAnimator.setFloatValues(startValue, toValue);
  /external/jmonkeyengine/engine/src/core/com/jme3/math/
FastMath.java 95 * Linear interpolation from startValue to endValue by the given percent.
96 * Basically: ((1 - percent) * startValue) + (percent * endValue)
99 * scale value to use. if 1, use endValue, if 0, use startValue.
100 * @param startValue
104 * @return The interpolated value between startValue and endValue.
106 public static float interpolateLinear(float scale, float startValue, float endValue) {
107 if (startValue == endValue) {
108 return startValue;
111 return startValue;
116 return ((1f - scale) * startValue) + (scale * endValue)
    [all...]
  /external/aac/libFDK/include/
FDK_crc.h 124 USHORT startValue; /*!< CRC start value. */
  /packages/apps/Launcher3/src/com/android/launcher3/
InterruptibleInOutAnimator.java 67 final float startValue = mFirstRun ? mOriginalFromValue :
73 // TODO: We don't really need to do the animation if startValue == toValue, but
81 mAnimator.setFloatValues(startValue, toValue);
  /external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/univariate/
AbstractUnivariateRealOptimizer.java 219 double min, double max, double startValue)
224 this.searchStart = startValue;
  /frameworks/base/core/java/com/android/internal/transition/
EpicenterTranslateClipReveal.java 265 public State evaluate(float fraction, State startValue, State endValue) {
266 mTemp.upper = startValue.upper + (int) ((endValue.upper - startValue.upper) * fraction);
267 mTemp.lower = startValue.lower + (int) ((endValue.lower - startValue.lower) * fraction);
268 mTemp.trans = startValue.trans + (int) ((endValue.trans - startValue.trans) * fraction);
  /development/samples/ApiDemos/src/com/example/android/apis/animation/
CustomEvaluator.java 86 public Object evaluate(float fraction, Object startValue, Object endValue) {
87 XYHolder startXY = (XYHolder) startValue;
  /frameworks/support/design/src/android/support/design/widget/
SwipeDismissBehavior.java 373 * The fraction that {@code value} is between {@code startValue} and {@code endValue}.
375 static float fraction(float startValue, float endValue, float value) {
376 return (value - startValue) / (endValue - startValue);
  /development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/
InsertionListView.java 364 public Rect evaluate(float fraction, Rect startValue, Rect endValue) {
365 return new Rect(interpolate(startValue.left, endValue.left, fraction),
366 interpolate(startValue.top, endValue.top, fraction),
367 interpolate(startValue.right, endValue.right, fraction),
368 interpolate(startValue.bottom, endValue.bottom, fraction));

Completed in 395 milliseconds

1 2 3 4