Home
last modified time | relevance | path

Searched refs:endValue (Results 1 – 4 of 4) sorted by relevance

/development/samples/devbytes/animation/CurvedMotion/src/com/example/android/curvedmotion/
DPathEvaluator.java28 public PathPoint evaluate(float t, PathPoint startValue, PathPoint endValue) { in evaluate() argument
30 if (endValue.mOperation == PathPoint.CURVE) { in evaluate()
33 3 * oneMinusT * oneMinusT * t * endValue.mControl0X + in evaluate()
34 3 * oneMinusT * t * t * endValue.mControl1X + in evaluate()
35 t * t * t * endValue.mX; in evaluate()
37 3 * oneMinusT * oneMinusT * t * endValue.mControl0Y + in evaluate()
38 3 * oneMinusT * t * t * endValue.mControl1Y + in evaluate()
39 t * t * t * endValue.mY; in evaluate()
40 } else if (endValue.mOperation == PathPoint.LINE) { in evaluate()
41 x = startValue.mX + t * (endValue.mX - startValue.mX); in evaluate()
[all …]
/development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/
DInsertionListView.java364 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/
DDynamicListView.java457 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));
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DCustomEvaluator.java86 public Object evaluate(float fraction, Object startValue, Object endValue) { in evaluate() argument
88 XYHolder endXY = (XYHolder) endValue; in evaluate()