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.java118 private int mCurItem; // Index of currently displayed page. field in ViewPager
400 mCurItem = 0; in setAdapter()
487 return mCurItem; in getCurrentItem()
501 if (!always && mCurItem == item && mItems.size() != 0) { in setCurrentItemInternal()
507 if (item > (mCurItem + pageLimit) || item < (mCurItem - pageLimit)) { in setCurrentItemInternal()
516 final boolean dispatchSelected = mCurItem != item; in setCurrentItemInternal()
520 mCurItem = item; in setCurrentItemInternal()
796 final float pageWidth = width * mAdapter.getPageWidth(mCurItem); in smoothScrollTo()
826 int newCurrItem = mCurItem; in dataSetChanged()
849 if (mCurItem == ii.position) { in dataSetChanged()
[all …]
/frameworks/support/core-ui/java/android/support/v4/view/
DViewPager.java155 int mCurItem; // Index of currently displayed page. field in ViewPager
510 mCurItem = 0; in setAdapter()
620 return mCurItem; in getCurrentItem()
632 if (!always && mCurItem == item && mItems.size() != 0) { in setCurrentItemInternal()
643 if (item > (mCurItem + pageLimit) || item < (mCurItem - pageLimit)) { in setCurrentItemInternal()
651 final boolean dispatchSelected = mCurItem != item; in setCurrentItemInternal()
656 mCurItem = item; in setCurrentItemInternal()
986 final float pageWidth = width * mAdapter.getPageWidth(mCurItem); in smoothScrollTo()
1019 int newCurrItem = mCurItem; in dataSetChanged()
1042 if (mCurItem == ii.position) { in dataSetChanged()
[all …]