Home | History | Annotate | Download | only in launcher2

Lines Matching refs:mCurrentPage

91     protected int mCurrentPage;
237 mCurrentPage = 0;
255 mPageSwitchListener.onPageSwitch(getPageAt(mCurrentPage), mCurrentPage);
283 return mCurrentPage;
286 return (mNextPage != INVALID_PAGE) ? mNextPage : mCurrentPage;
309 if (0 <= mCurrentPage && mCurrentPage < getPageCount()) {
310 int offset = getChildOffset(mCurrentPage);
311 int relOffset = getRelativeChildOffset(mCurrentPage);
344 // don't introduce any checks like mCurrentPage == currentPage here-- if we change the
351 mCurrentPage = Math.max(0, Math.min(currentPage, getPageCount() - 1));
360 mPageSwitchListener.onPageSwitch(getPageAt(mCurrentPage), mCurrentPage);
455 mCurrentPage = Math.max(0, Math.min(mNextPage, getPageCount() - 1));
461 loadAssociatedPages(mCurrentPage);
636 scrollToNewPageWithoutMovingPages(mCurrentPage);
676 if (mFirstLayout && mCurrentPage >= 0 && mCurrentPage < getChildCount()) {
863 if (page != mCurrentPage || !mScroller.isFinished()) {
876 focusablePage = mCurrentPage;
905 if (mCurrentPage >= 0 && mCurrentPage < getPageCount()) {
906 getPageAt(mCurrentPage).addFocusables(views, direction, focusableMode);
909 if (mCurrentPage > 0) {
910 getPageAt(mCurrentPage - 1).addFocusables(views, direction, focusableMode);
913 if (mCurrentPage < getPageCount() - 1) {
914 getPageAt(mCurrentPage + 1).addFocusables(views, direction, focusableMode);
928 View current = getPageAt(mCurrentPage);
955 final View currentPage = getPageAt(mCurrentPage);
966 return (x > (getMeasuredWidth() - getRelativeChildOffset(mCurrentPage) + mPageSpacing));
968 return (x < getRelativeChildOffset(mCurrentPage) - mPageSpacing);
977 return (x < getRelativeChildOffset(mCurrentPage) - mPageSpacing);
979 return (x > (getMeasuredWidth() - getRelativeChildOffset(mCurrentPage) + mPageSpacing));
1134 final View currentPage = getPageAt(mCurrentPage);
1291 mCurrentPage));
1317 (isFling && !isVelocityXLeft)) && mCurrentPage > 0) {
1318 finalPage = returnToOriginalPage ? mCurrentPage : mCurrentPage - 1;
1322 mCurrentPage < getChildCount() - 1) {
1323 finalPage = returnToOriginalPage ? mCurrentPage : mCurrentPage + 1;
1332 int nextPage = Math.max(0, mCurrentPage - 1);
1333 if (nextPage != mCurrentPage) {
1342 int nextPage = Math.min(getChildCount() - 1, mCurrentPage + 1);
1343 if (nextPage != mCurrentPage) {
1575 if (focusedChild != null && whichPage != mCurrentPage &&
1576 focusedChild == getPageAt(mCurrentPage)) {
1602 if (mCurrentPage > 0) snapToPage(mCurrentPage - 1);
1610 if (mCurrentPage < getChildCount() -1) snapToPage(mCurrentPage + 1);
1771 loadAssociatedPages(mCurrentPage, immediateAndOnly);
1944 event.setFromIndex(mCurrentPage);
1945 event.setToIndex(mCurrentPage);