Lines Matching refs:duration
1496 int duration = 0;
1518 duration = 4 * Math.round(1000 * Math.abs(distance / velocity));
1521 return snapToPage(whichPage, delta, duration, false, null,
1524 return snapToPage(whichPage, delta, duration);
1536 public boolean snapToPage(int whichPage, int duration) {
1537 return snapToPage(whichPage, duration, false, null);
1540 public boolean snapToPage(int whichPage, int duration, TimeInterpolator interpolator) {
1541 return snapToPage(whichPage, duration, false, interpolator);
1544 protected boolean snapToPage(int whichPage, int duration, boolean immediate,
1550 return snapToPage(whichPage, delta, duration, immediate, interpolator, 0, false);
1553 protected boolean snapToPage(int whichPage, int delta, int duration) {
1554 return snapToPage(whichPage, delta, duration, false, null, 0, false);
1557 protected boolean snapToPage(int whichPage, int delta, int duration, boolean immediate,
1565 duration *= Settings.Global.getFloat(getContext().getContentResolver(),
1573 awakenScrollBars(duration);
1575 duration = 0;
1576 } else if (duration == 0) {
1577 duration = Math.abs(delta);
1580 if (duration != 0) {
1595 mScroller.startScrollSpring(getUnboundedScroll(), delta, duration, velocity);
1597 mScroller.startScroll(getUnboundedScroll(), delta, duration);