Home
last modified time | relevance | path

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

12

/frameworks/support/core-ui/tests/java/android/support/v4/view/
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()
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()
DBaseViewPagerTest.java270 assertEquals("Initial state", 0, mViewPager.getCurrentItem()); in verifyPageSelections()
277 assertEquals("Scroll right", 1, mViewPager.getCurrentItem()); in verifyPageSelections()
281 assertEquals("Scroll right", 2, mViewPager.getCurrentItem()); in verifyPageSelections()
286 assertEquals("Scroll right beyond last page", 2, mViewPager.getCurrentItem()); in verifyPageSelections()
291 assertEquals("Scroll left", 1, mViewPager.getCurrentItem()); in verifyPageSelections()
296 assertEquals("Scroll left", 0, mViewPager.getCurrentItem()); in verifyPageSelections()
302 assertEquals("Scroll left beyond first page", 0, mViewPager.getCurrentItem()); in verifyPageSelections()
311 assertEquals("Scroll to last page", 2, mViewPager.getCurrentItem()); in verifyPageSelections()
317 assertEquals("Scroll to first page", 0, mViewPager.getCurrentItem()); in verifyPageSelections()
340 assertEquals("Initial state", 0, mViewPager.getCurrentItem()); in verifyPageChangeViewActions()
[all …]
DViewPagerActions.java186 int current = viewPager.getCurrentItem();
214 int current = viewPager.getCurrentItem();
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
DSessionManager.java65 public PlaylistItem getCurrentItem() { in getCurrentItem() method in SessionManager
98 mPlayer.getStatus(getCurrentItem(), true /* update */); in updateStatus()
144 PlaylistItem item = getCurrentItem(); in seek()
167 if (item == getCurrentItem()) { in getStatus()
251 PlaylistItem item = getCurrentItem(); in suspend()
326 PlaylistItem item = getCurrentItem(); in checkItemCurrent()
333 PlaylistItem item = getCurrentItem(); in updatePlaybackState()
391 PlaylistItem item = getCurrentItem(); in finishItem()
DSampleMediaRouteProvider.java322 if (mSessionManager.getCurrentItem() != null) { in onControlRequest()
571 item = mSessionManager.getCurrentItem(); in handleStatusChange()
DSampleMediaRouterActivity.java574 PlaylistItem currentItem = mSessionManager.getCurrentItem(); in updateUi()
/frameworks/support/core-ui/java/android/support/v4/view/
DPagerTabStrip.java110 mPager.setCurrentItem(mPager.getCurrentItem() - 1); in PagerTabStrip()
118 mPager.setCurrentItem(mPager.getCurrentItem() + 1); in PagerTabStrip()
250 mPager.setCurrentItem(mPager.getCurrentItem() - 1); in onTouchEvent()
252 mPager.setCurrentItem(mPager.getCurrentItem() + 1); in onTouchEvent()
DPagerTitleStrip.java322 updateText(mPager.getCurrentItem(), newAdapter); in updateAdapter()
488 updateText(mPager.getCurrentItem(), mPager.getAdapter()); in onPageSelected()
491 updateTextPositions(mPager.getCurrentItem(), offset, true); in onPageSelected()
508 updateText(mPager.getCurrentItem(), mPager.getAdapter()); in onChanged()
511 updateTextPositions(mPager.getCurrentItem(), offset, true); in onChanged()
DViewPager.java619 public int getCurrentItem() { in getCurrentItem() method in ViewPager
1649 mScroller.setFinalX(getCurrentItem() * getClientWidth());
/frameworks/support/design/tests/src/android/support/design/widget/
DTabLayoutWithViewPagerTest.java271 assertEquals("Selected page", 0, mViewPager.getCurrentItem());
280 mViewPager.getCurrentItem());
290 assertEquals("Scroll left #" + i, expectedCurrentTabIndex, mViewPager.getCurrentItem());
305 assertEquals("Selected page", 0, mViewPager.getCurrentItem());
313 assertEquals("Select tab #" + i, i, mViewPager.getCurrentItem());
320 assertEquals("Scroll left #" + i, i, mViewPager.getCurrentItem());
340 assertEquals("Selected tab", mViewPager.getCurrentItem(),
351 assertEquals("Default selected page", 0, mViewPager.getCurrentItem());
618 assertEquals("Selected page", selected, mViewPager.getCurrentItem());
/frameworks/base/core/java/android/widget/
DDayPickerView.java313 if (position != mViewPager.getCurrentItem()) {
326 if (position != mViewPager.getCurrentItem()) {
370 updateButtonVisibility(mViewPager.getCurrentItem());
405 return mViewPager.getCurrentItem();
447 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.java52 int current = viewPager.getCurrentItem(); in scrollRight()
80 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/support/design/src/android/support/design/widget/
DTabLayout.java825 setScrollPosition(viewPager.getCurrentItem(), 0f, true); in setupWithViewPager()
915 final int curItem = mViewPager.getCurrentItem(); in populateFromPagerAdapter()
/frameworks/base/core/java/com/android/internal/widget/
DViewPager.java485 public int getCurrentItem() { in getCurrentItem() method in ViewPager
1308 final ItemInfo itemInfo = infoForPosition(getCurrentItem());
/frameworks/support/api/
D22.0.0.txt3507 method public int getCurrentItem();
D22.1.0.txt3842 method public int getCurrentItem();
D22.2.0.txt4244 method public int getCurrentItem();
D22.2.1.txt4273 method public int getCurrentItem();
D25.1.0.txt6901 method public int getCurrentItem();
D25.0.0.txt6490 method public int getCurrentItem();
D23.0.0.txt4946 method public int getCurrentItem();
D25.2.0.txt6901 method public int getCurrentItem();

12