Home | History | Annotate | Download | only in launcher2

Lines Matching defs:mCurrentPage

91     protected int mCurrentPage;
236 mCurrentPage = 0;
254 mPageSwitchListener.onPageSwitch(getPageAt(mCurrentPage), mCurrentPage);
275 return mCurrentPage;
278 return (mNextPage != INVALID_PAGE) ? mNextPage : mCurrentPage;
299 int offset = getChildOffset(mCurrentPage);
300 int relOffset = getRelativeChildOffset(mCurrentPage);
314 // don't introduce any checks like mCurrentPage == currentPage here-- if we change the
321 mCurrentPage = Math.max(0, Math.min(currentPage, getPageCount() - 1));
330 mPageSwitchListener.onPageSwitch(getPageAt(mCurrentPage), mCurrentPage);
414 mCurrentPage = Math.max(0, Math.min(mNextPage, getPageCount() - 1));
420 loadAssociatedPages(mCurrentPage);
594 scrollToNewPageWithoutMovingPages(mCurrentPage);
630 if (mFirstLayout && mCurrentPage >= 0 && mCurrentPage < getChildCount()) {
819 if (page != mCurrentPage || !mScroller.isFinished()) {
832 focusablePage = mCurrentPage;
859 if (mCurrentPage >= 0 && mCurrentPage < getPageCount()) {
860 getPageAt(mCurrentPage
863 if (mCurrentPage > 0) {
864 getPageAt(mCurrentPage - 1).addFocusables(views, direction, focusableMode);
867 if (mCurrentPage < getPageCount() - 1) {
868 getPageAt(mCurrentPage + 1).addFocusables(views, direction, focusableMode);
882 View current = getPageAt(mCurrentPage);
909 final View currentPage = getPageAt(mCurrentPage);
919 return (x < getRelativeChildOffset(mCurrentPage) - mPageSpacing);
926 return (x > (getMeasuredWidth() - getRelativeChildOffset(mCurrentPage) + mPageSpacing));
1079 final View currentPage = getPageAt(mCurrentPage);
1236 final int pageWidth = getScaledMeasuredWidth(getPageAt(mCurrentPage));
1259 (isFling && velocityX > 0)) && mCurrentPage > 0) {
1260 finalPage = returnToOriginalPage ? mCurrentPage : mCurrentPage - 1;
1264 mCurrentPage < getChildCount() - 1) {
1265 finalPage = returnToOriginalPage ? mCurrentPage : mCurrentPage + 1;
1274 int nextPage = Math.max(0, mCurrentPage - 1);
1275 if (nextPage != mCurrentPage) {
1284 int nextPage = Math.min(getChildCount() - 1, mCurrentPage + 1);
1285 if (nextPage != mCurrentPage) {
1510 if (focusedChild != null && whichPage != mCurrentPage &&
1511 focusedChild == getPageAt(mCurrentPage)) {
1537 if (mCurrentPage > 0) snapToPage(mCurrentPage - 1);
1545 if (mCurrentPage < getChildCount() -1) snapToPage(mCurrentPage + 1);
1706 loadAssociatedPages(mCurrentPage, immediateAndOnly);
1876 event.setFromIndex(mCurrentPage);
1877 event.setToIndex(mCurrentPage);