Home
last modified time | relevance | path

Searched refs:mCurItem (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/com/android/internal/widget/
DViewPager.java144 private int mCurItem; // Index of currently displayed page. field in ViewPager
426 mCurItem = 0; in setAdapter()
513 return mCurItem; in getCurrentItem()
527 if (!always && mCurItem == item && mItems.size() != 0) { in setCurrentItemInternal()
533 if (item > (mCurItem + pageLimit) || item < (mCurItem - pageLimit)) { in setCurrentItemInternal()
542 final boolean dispatchSelected = mCurItem != item; in setCurrentItemInternal()
546 mCurItem = item; in setCurrentItemInternal()
822 final float pageWidth = width * mAdapter.getPageWidth(mCurItem); in smoothScrollTo()
852 int newCurrItem = mCurItem; in dataSetChanged()
875 if (mCurItem == ii.position) { in dataSetChanged()
[all …]
/frameworks/support/v4/java/android/support/v4/view/
DViewPager.java161 private int mCurItem; // Index of currently displayed page. field in ViewPager
514 mCurItem = 0; in setAdapter()
624 return mCurItem; in getCurrentItem()
636 if (!always && mCurItem == item && mItems.size() != 0) { in setCurrentItemInternal()
647 if (item > (mCurItem + pageLimit) || item < (mCurItem - pageLimit)) { in setCurrentItemInternal()
655 final boolean dispatchSelected = mCurItem != item; in setCurrentItemInternal()
660 mCurItem = item; in setCurrentItemInternal()
985 final float pageWidth = width * mAdapter.getPageWidth(mCurItem); in smoothScrollTo()
1018 int newCurrItem = mCurItem; in dataSetChanged()
1041 if (mCurItem == ii.position) { in dataSetChanged()
[all …]