Home
last modified time | relevance | path

Searched refs:getCurrentItem (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/support/v4/tests/java/android/support/v4/view/
DViewPagerWithTabStripTest.java51 assertEquals("Click tab #0 on tab #0", 0, mViewPager.getCurrentItem()); in assertStripInteraction()
55 assertEquals("Click tab #1 on tab #0", 1, mViewPager.getCurrentItem()); in assertStripInteraction()
59 assertEquals("Click tab #0 on tab #1", 0, mViewPager.getCurrentItem()); in assertStripInteraction()
66 assertEquals("Click tab #1 on tab #1", 1, mViewPager.getCurrentItem()); in assertStripInteraction()
70 assertEquals("Click tab #2 on tab #1", 2, mViewPager.getCurrentItem()); in assertStripInteraction()
80 assertEquals("Click in between tabs #0 and #1 on tab #0", 1, mViewPager.getCurrentItem()); in assertStripInteraction()
84 assertEquals("Click in between tabs #0 and #1 on tab #1", 0, mViewPager.getCurrentItem()); in assertStripInteraction()
91 assertEquals("Click in between tabs #1 and #2 on tab #1", 2, mViewPager.getCurrentItem()); in assertStripInteraction()
DViewPagerWithTitleStripTest.java52 assertEquals("Click tab #0 on tab #0", 0, mViewPager.getCurrentItem()); in assertStripInteraction()
56 assertEquals("Click tab #1 on tab #0", 0, mViewPager.getCurrentItem()); in assertStripInteraction()
62 assertEquals("Click tab #0 on tab #1", 1, mViewPager.getCurrentItem()); in assertStripInteraction()
66 assertEquals("Click tab #1 on tab #1", 1, mViewPager.getCurrentItem()); in assertStripInteraction()
70 assertEquals("Click tab #2 on tab #1", 1, mViewPager.getCurrentItem()); in assertStripInteraction()
81 assertEquals("Click in between tabs #0 and #1 on tab #0", 0, mViewPager.getCurrentItem()); in assertStripInteraction()
88 assertEquals("Click in between tabs #1 and #2 on tab #1", 1, mViewPager.getCurrentItem()); in assertStripInteraction()
92 assertEquals("Click in between tabs #0 and #1 on tab #1", 1, mViewPager.getCurrentItem()); in assertStripInteraction()
DBaseViewPagerTest.java198 assertEquals("Initial state", 0, mViewPager.getCurrentItem()); in verifyPageSelections()
205 assertEquals("Scroll right", 1, mViewPager.getCurrentItem()); in verifyPageSelections()
209 assertEquals("Scroll right", 2, mViewPager.getCurrentItem()); in verifyPageSelections()
214 assertEquals("Scroll right beyond last page", 2, mViewPager.getCurrentItem()); in verifyPageSelections()
219 assertEquals("Scroll left", 1, mViewPager.getCurrentItem()); in verifyPageSelections()
224 assertEquals("Scroll left", 0, mViewPager.getCurrentItem()); in verifyPageSelections()
230 assertEquals("Scroll left beyond first page", 0, mViewPager.getCurrentItem()); in verifyPageSelections()
239 assertEquals("Scroll to last page", 2, mViewPager.getCurrentItem()); in verifyPageSelections()
245 assertEquals("Scroll to first page", 0, mViewPager.getCurrentItem()); in verifyPageSelections()
270 assertEquals("Initial state", 0, mViewPager.getCurrentItem()); in testPageSwipes()
[all …]
DViewPagerActions.java160 int current = viewPager.getCurrentItem();
188 int current = viewPager.getCurrentItem();
/frameworks/support/design/tests/src/android/support/design/widget/
DTabLayoutWithViewPagerTest.java203 assertEquals("Selected page", 0, mViewPager.getCurrentItem()); in verifyViewPagerSelection()
212 mViewPager.getCurrentItem()); in verifyViewPagerSelection()
222 assertEquals("Scroll left #" + i, expectedCurrentTabIndex, mViewPager.getCurrentItem()); in verifyViewPagerSelection()
237 assertEquals("Selected page", 0, mViewPager.getCurrentItem()); in verifyTabLayoutSelection()
245 assertEquals("Select tab #" + i, i, mViewPager.getCurrentItem()); in verifyTabLayoutSelection()
252 assertEquals("Scroll left #" + i, i, mViewPager.getCurrentItem()); in verifyTabLayoutSelection()
272 assertEquals("Selected tab", mViewPager.getCurrentItem(), in testBasics()
283 assertEquals("Default selected page", 0, mViewPager.getCurrentItem()); in testInteraction()
556 assertEquals("Selected page", selected, mViewPager.getCurrentItem()); in testSetupAfterViewPagerScrolled()
/frameworks/support/v4/java/android/support/v4/view/
DPagerTabStrip.java109 mPager.setCurrentItem(mPager.getCurrentItem() - 1); in PagerTabStrip()
117 mPager.setCurrentItem(mPager.getCurrentItem() + 1); in PagerTabStrip()
249 mPager.setCurrentItem(mPager.getCurrentItem() - 1); in onTouchEvent()
251 mPager.setCurrentItem(mPager.getCurrentItem() + 1); in onTouchEvent()
DPagerTitleStrip.java331 updateText(mPager.getCurrentItem(), newAdapter); in updateAdapter()
494 updateText(mPager.getCurrentItem(), mPager.getAdapter()); in onPageSelected()
497 updateTextPositions(mPager.getCurrentItem(), offset, true); in onPageSelected()
514 updateText(mPager.getCurrentItem(), mPager.getAdapter()); in onChanged()
517 updateTextPositions(mPager.getCurrentItem(), offset, true); in onChanged()
DViewPager.java623 public int getCurrentItem() { in getCurrentItem() method in ViewPager
1643 mScroller.setFinalX(getCurrentItem() * getClientWidth());
/frameworks/base/core/java/android/widget/
DDayPickerView.java300 if (position != mViewPager.getCurrentItem()) {
348 updateButtonVisibility(mViewPager.getCurrentItem());
383 return mViewPager.getCurrentItem();
425 final int nextItem = mViewPager.getCurrentItem() + direction;
/frameworks/base/core/java/android/webkit/
DWebBackForwardList.java32 public abstract WebHistoryItem getCurrentItem(); in getCurrentItem() method in WebBackForwardList
/frameworks/support/design/tests/src/android/support/design/testutils/
DViewPagerActions.java57 int current = viewPager.getCurrentItem(); in scrollRight()
85 int current = viewPager.getCurrentItem();
/frameworks/opt/photoviewer/src/com/android/ex/photo/
DPhotoViewController.java544 return mFullScreen || (mViewPager.getCurrentItem() != mAdapter.getItemPosition(fragment)); in isFragmentFullScreen()
709 return mViewPager.getCurrentItem() == mAdapter.getItemPosition(fragment); in isFragmentActive()
829 final int position = mViewPager.getCurrentItem() + 1; in updateActionBar()
902 final int position = mViewPager.getCurrentItem(); in getCursorAtProperPosition()
/frameworks/base/docs/html/training/animation/
Dscreen-slide.jd173 if (mPager.getCurrentItem() == 0) {
179 mPager.setCurrentItem(mPager.getCurrentItem() - 1);
/frameworks/support/design/src/android/support/design/widget/
DTabLayout.java819 setScrollPosition(viewPager.getCurrentItem(), 0f, true); in setupWithViewPager()
909 final int curItem = mViewPager.getCurrentItem(); in populateFromPagerAdapter()
/frameworks/base/core/java/com/android/internal/widget/
DViewPager.java512 public int getCurrentItem() { in getCurrentItem() method in ViewPager
1335 final ItemInfo itemInfo = infoForPosition(getCurrentItem());
/frameworks/support/v4/api/
D22.1.0.txt2258 method public int getCurrentItem();
D22.0.0.txt2065 method public int getCurrentItem();
D22.2.1.txt2322 method public int getCurrentItem();
D22.2.0.txt2321 method public int getCurrentItem();
D23.0.0.txt2516 method public int getCurrentItem();
D23.1.0.txt2548 method public int getCurrentItem();
D23.1.1.txt2508 method public int getCurrentItem();
Dcurrent.txt2747 method public int getCurrentItem();
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt36132 method public abstract android.webkit.WebHistoryItem getCurrentItem();
/frameworks/base/api/
Dcurrent.txt45175 method public abstract android.webkit.WebHistoryItem getCurrentItem();

12