/frameworks/base/core/java/android/webkit/ |
H A D | WebBackForwardList.java | 32 public abstract WebHistoryItem getCurrentItem(); method in class:WebBackForwardList
|
/frameworks/support/v4/tests/java/android/support/v4/view/ |
H A D | ViewPagerWithTabStripTest.java | 51 assertEquals("Click tab #0 on tab #0", 0, mViewPager.getCurrentItem()); 55 assertEquals("Click tab #1 on tab #0", 1, mViewPager.getCurrentItem()); 59 assertEquals("Click tab #0 on tab #1", 0, mViewPager.getCurrentItem()); 66 assertEquals("Click tab #1 on tab #1", 1, mViewPager.getCurrentItem()); 70 assertEquals("Click tab #2 on tab #1", 2, mViewPager.getCurrentItem()); 80 assertEquals("Click in between tabs #0 and #1 on tab #0", 1, mViewPager.getCurrentItem()); 84 assertEquals("Click in between tabs #0 and #1 on tab #1", 0, mViewPager.getCurrentItem()); 91 assertEquals("Click in between tabs #1 and #2 on tab #1", 2, mViewPager.getCurrentItem());
|
H A D | ViewPagerWithTitleStripTest.java | 52 assertEquals("Click tab #0 on tab #0", 0, mViewPager.getCurrentItem()); 56 assertEquals("Click tab #1 on tab #0", 0, mViewPager.getCurrentItem()); 62 assertEquals("Click tab #0 on tab #1", 1, mViewPager.getCurrentItem()); 66 assertEquals("Click tab #1 on tab #1", 1, mViewPager.getCurrentItem()); 70 assertEquals("Click tab #2 on tab #1", 1, mViewPager.getCurrentItem()); 81 assertEquals("Click in between tabs #0 and #1 on tab #0", 0, mViewPager.getCurrentItem()); 88 assertEquals("Click in between tabs #1 and #2 on tab #1", 1, mViewPager.getCurrentItem()); 92 assertEquals("Click in between tabs #0 and #1 on tab #1", 1, mViewPager.getCurrentItem());
|
H A D | BaseViewPagerTest.java | 198 assertEquals("Initial state", 0, mViewPager.getCurrentItem()); 205 assertEquals("Scroll right", 1, mViewPager.getCurrentItem()); 209 assertEquals("Scroll right", 2, mViewPager.getCurrentItem()); 214 assertEquals("Scroll right beyond last page", 2, mViewPager.getCurrentItem()); 219 assertEquals("Scroll left", 1, mViewPager.getCurrentItem()); 224 assertEquals("Scroll left", 0, mViewPager.getCurrentItem()); 230 assertEquals("Scroll left beyond first page", 0, mViewPager.getCurrentItem()); 239 assertEquals("Scroll to last page", 2, mViewPager.getCurrentItem()); 245 assertEquals("Scroll to first page", 0, mViewPager.getCurrentItem()); 270 assertEquals("Initial state", 0, mViewPager.getCurrentItem()); [all...] |
H A D | ViewPagerActions.java | 160 int current = viewPager.getCurrentItem(); 188 int current = viewPager.getCurrentItem();
|
/frameworks/support/v4/java/android/support/v4/view/ |
H A D | PagerTabStrip.java | 109 mPager.setCurrentItem(mPager.getCurrentItem() - 1); 117 mPager.setCurrentItem(mPager.getCurrentItem() + 1); 249 mPager.setCurrentItem(mPager.getCurrentItem() - 1); 251 mPager.setCurrentItem(mPager.getCurrentItem() + 1);
|
H A D | PagerTitleStrip.java | 331 updateText(mPager.getCurrentItem(), newAdapter); 494 updateText(mPager.getCurrentItem(), mPager.getAdapter()); 497 updateTextPositions(mPager.getCurrentItem(), offset, true); 514 updateText(mPager.getCurrentItem(), mPager.getAdapter()); 517 updateTextPositions(mPager.getCurrentItem(), offset, true);
|
H A D | ViewPager.java | 623 public int getCurrentItem() { method in class:ViewPager 1643 mScroller.setFinalX(getCurrentItem() * getClientWidth());
|
/frameworks/support/design/tests/src/android/support/design/widget/ |
H A D | TabLayoutWithViewPagerTest.java | 203 assertEquals("Selected page", 0, mViewPager.getCurrentItem()); 212 mViewPager.getCurrentItem()); 222 assertEquals("Scroll left #" + i, expectedCurrentTabIndex, mViewPager.getCurrentItem()); 237 assertEquals("Selected page", 0, mViewPager.getCurrentItem()); 245 assertEquals("Select tab #" + i, i, mViewPager.getCurrentItem()); 252 assertEquals("Scroll left #" + i, i, mViewPager.getCurrentItem()); 272 assertEquals("Selected tab", mViewPager.getCurrentItem(), 283 assertEquals("Default selected page", 0, mViewPager.getCurrentItem()); 556 assertEquals("Selected page", selected, mViewPager.getCurrentItem());
|
/frameworks/support/design/tests/src/android/support/design/testutils/ |
H A D | ViewPagerActions.java | 57 int current = viewPager.getCurrentItem(); 85 int current = viewPager.getCurrentItem();
|
/frameworks/base/core/java/android/widget/ |
H A D | DayPickerView.java | 300 if (position != mViewPager.getCurrentItem()) { 348 updateButtonVisibility(mViewPager.getCurrentItem()); 383 return mViewPager.getCurrentItem(); 425 final int nextItem = mViewPager.getCurrentItem() + direction;
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/ |
H A D | PhotoViewController.java | 544 return mFullScreen || (mViewPager.getCurrentItem() != mAdapter.getItemPosition(fragment)); 709 return mViewPager.getCurrentItem() == mAdapter.getItemPosition(fragment); 829 final int position = mViewPager.getCurrentItem() + 1; 902 final int position = mViewPager.getCurrentItem();
|
/frameworks/support/design/src/android/support/design/widget/ |
H A D | TabLayout.java | 819 setScrollPosition(viewPager.getCurrentItem(), 0f, true); 909 final int curItem = mViewPager.getCurrentItem();
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ViewPager.java | 512 public int getCurrentItem() { method in class:ViewPager 1335 final ItemInfo itemInfo = infoForPosition(getCurrentItem());
|