/development/samples/devbytes/animation/CurvedMotion/src/com/example/android/curvedmotion/ |
PathEvaluator.java | 23 * on the operation specified by the endValue (the operation for the interval between 28 public PathPoint evaluate(float t, PathPoint startValue, PathPoint endValue) { 30 if (endValue.mOperation == PathPoint.CURVE) { 33 3 * oneMinusT * oneMinusT * t * endValue.mControl0X + 34 3 * oneMinusT * t * t * endValue.mControl1X + 35 t * t * t * endValue.mX; 37 3 * oneMinusT * oneMinusT * t * endValue.mControl0Y + 38 3 * oneMinusT * t * t * endValue.mControl1Y + 39 t * t * t * endValue.mY; 40 } else if (endValue.mOperation == PathPoint.LINE) [all...] |
/frameworks/base/core/java/android/animation/ |
FloatEvaluator.java | 28 * where <code>x0</code> is <code>startValue</code>, <code>x1</code> is <code>endValue</code>, 34 * @param endValue The end value; should be of type <code>float</code> or <code>Float</code> 38 public Float evaluate(float fraction, Number startValue, Number endValue) { 40 return startFloat + fraction * (endValue.floatValue() - startFloat);
|
IntEvaluator.java | 28 * where <code>x0</code> is <code>startValue</code>, <code>x1</code> is <code>endValue</code>, 34 * @param endValue The end value; should be of type <code>int</code> or <code>Integer</code> 38 public Integer evaluate(float fraction, Integer startValue, Integer endValue) { 40 return (int)(startInt + fraction * (endValue - startInt));
|
TypeEvaluator.java | 33 * where <code>x0</code> is <code>startValue</code>, <code>x1</code> is <code>endValue</code>, 38 * @param endValue The end value. 42 public T evaluate(float fraction, T startValue, T endValue);
|
RectEvaluator.java | 67 * @param endValue The end 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);
|
PointFEvaluator.java | 67 * @param endValue The end 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 | 59 * @param endValue The end value. 61 * the same index in startValue and endValue. 64 public float[] evaluate(float fraction, float[] startValue, float[] endValue) { 72 float end = endValue[i];
|
IntArrayEvaluator.java | 58 * @param endValue The end value. 60 * the same index in startValue and endValue. 63 public int[] evaluate(float fraction, int[] startValue, int[] endValue) { 70 int end = endValue[i];
|
ArgbEvaluator.java | 47 * @param endValue A 32-bit int value representing colors in the 54 public Object evaluate(float fraction, Object startValue, Object endValue) { 61 int endInt = (Integer) endValue;
|
PathKeyframes.java | 149 private static float interpolate(float fraction, float startValue, float endValue) { 150 float diff = endValue - startValue;
|
/cts/tools/dex-tools/src/dex/reader/ |
DexBuffer.java | 79 int endValue = 0; 84 endValue |= ((value & 0x7F) << 7 * nr);// cut away left most bit 87 return endValue; 94 int endValue = 0; 98 endValue |= (tmp << i * 8); 100 return endValue; 107 short endValue = 0; 111 endValue |= (tmp << i * 8); 113 return endValue; 120 char endValue = 0 [all...] |
/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));
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
FlingAnimationUtils.java | 72 * @param endValue the end value of the animator 75 public void apply(Animator animator, float currValue, float endValue, float velocity) { 76 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); 85 * @param endValue the end value of the animator 88 public void apply(ViewPropertyAnimator animator, float currValue, float endValue, 90 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); 99 * @param endValue the end value of the animator 104 public void apply(Animator animator, float currValue, float endValue, float velocity [all...] |
SpeedBumpView.java | 94 float endValue = nowVisible ? 1.0f : 0.0f; 96 .alpha(endValue) 98 .scaleX(endValue) 99 .scaleY(endValue)
|
StackScrollerDecorView.java | 80 float endValue = nowVisible ? 1.0f : 0.0f; 89 .alpha(endValue)
|
/external/jsilver/src/com/google/clearsilver/jsilver/functions/string/ |
SliceFunction.java | 40 Value endValue = args[2]; 43 int end = endValue.asNumber(); 65 || startValue.isPartiallyEscaped() || endValue.isPartiallyEscaped());
|
/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. 102 * @param endValue 104 * @return The interpolated value between startValue and endValue. 106 public static float interpolateLinear(float scale, float startValue, float endValue) { 107 if (startValue == endValue) { 114 return endValue; 116 return ((1f - scale) * startValue) + (scale * endValue); 120 * Linear interpolation from startValue to endValue by the given percent [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
CustomEvaluator.java | 86 public Object evaluate(float fraction, Object startValue, Object endValue) { 88 XYHolder endXY = (XYHolder) endValue;
|
/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));
|
/development/samples/devbytes/animation/ListViewDraggingAnimation/src/com/example/android/listviewdragginganimation/ |
DynamicListView.java | 457 public Rect evaluate(float fraction, Rect startValue, Rect endValue) { 458 return new Rect(interpolate(startValue.left, endValue.left, fraction), 459 interpolate(startValue.top, endValue.top, fraction), 460 interpolate(startValue.right, endValue.right, fraction), 461 interpolate(startValue.bottom, endValue.bottom, fraction));
|
/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);
|
/frameworks/base/core/java/android/transition/ |
TransitionUtils.java | 182 public Matrix evaluate(float fraction, Matrix startValue, Matrix endValue) { 184 endValue.getValues(mTempEndValues);
|
/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);
|
/frameworks/support/v17/leanback/kitkat/android/support/v17/leanback/transition/ |
SlideKitkat.java | 265 float terminalValue, float endValue, int finalVisibility) { 269 mEndValue = endValue;
|