Lines Matching refs:whichPage
116 protected void snapToPageWithVelocity(int whichPage, int velocity) {
118 super.snapToPageWithVelocity(whichPage, velocity);
120 snapToPageWithVelocity(whichPage, 0, true);
124 private void snapToPageWithVelocity(int whichPage, int velocity, boolean settle) {
127 whichPage = Math.max(0, Math.min(whichPage, getChildCount() - 1));
129 final int screenDelta = Math.max(1, Math.abs(whichPage - mCurrentPage));
130 final int newX = getScrollForPage(whichPage);
151 snapToPage(whichPage, delta, duration);
155 protected void snapToPage(int whichPage) {
157 super.snapToPage(whichPage);
159 snapToPageWithVelocity(whichPage, 0, false);