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/viewpager/src/main/java/androidx/viewpager/widget/
DViewPager.java161 int mCurItem; // Index of currently displayed page. field in ViewPager
516 mCurItem = 0; in setAdapter()
627 return mCurItem; in getCurrentItem()
639 if (!always && mCurItem == item && mItems.size() != 0) { in setCurrentItemInternal()
650 if (item > (mCurItem + pageLimit) || item < (mCurItem - pageLimit)) { in setCurrentItemInternal()
658 final boolean dispatchSelected = mCurItem != item; in setCurrentItemInternal()
663 mCurItem = item; in setCurrentItemInternal()
994 final float pageWidth = width * mAdapter.getPageWidth(mCurItem); in smoothScrollTo()
1027 int newCurrItem = mCurItem; in dataSetChanged()
1050 if (mCurItem == ii.position) { in dataSetChanged()
[all …]