Home
last modified time | relevance | path

Searched refs:LinearInterpolator (Results 1 – 3 of 3) sorted by relevance

/sdk/chimpchat/test/com/android/chimpchat/adb/
DLinearInterpolatorTest.java20 import com.android.chimpchat.adb.LinearInterpolator.Point;
30 private static class Collector implements LinearInterpolator.Callback {
31 private final List<LinearInterpolator.Point> points = Lists.newArrayList();
33 public List<LinearInterpolator.Point> getPoints() { in getPoints()
56 LinearInterpolator lerp = new LinearInterpolator(10); in testLerpRight()
58 lerp.interpolate(new LinearInterpolator.Point(0, 100), in testLerpRight()
59 new LinearInterpolator.Point(1000, 100), in testLerpRight()
62 List<LinearInterpolator.Point> points = collector.getPoints(); in testLerpRight()
70 LinearInterpolator lerp = new LinearInterpolator(10); in testLerpLeft()
72 lerp.interpolate(new LinearInterpolator.Point(1000, 100), in testLerpLeft()
[all …]
/sdk/chimpchat/src/com/android/chimpchat/adb/
DLinearInterpolator.java23 public class LinearInterpolator { class
96 public LinearInterpolator(int steps) { in LinearInterpolator() method in LinearInterpolator
DAdbChimpDevice.java29 import com.android.chimpchat.adb.LinearInterpolator.Point;
534 LinearInterpolator lerp = new LinearInterpolator(steps); in drag()
535 LinearInterpolator.Point start = new LinearInterpolator.Point(startx, starty); in drag()
536 LinearInterpolator.Point end = new LinearInterpolator.Point(endx, endy); in drag()
537 lerp.interpolate(start, end, new LinearInterpolator.Callback() { in drag()