Searched refs:endPageIndex (Results 1 – 2 of 2) sorted by relevance
/frameworks/support/core-ui/tests/java/android/support/v4/view/ |
D | BaseViewPagerTest.java | 745 private void verifyScrollCallbacksToHigherPage(int startPageIndex, int endPageIndex, in verifyScrollCallbacksToHigherPage() argument 752 endPageIndex, (int) positions.get(callbackCount - 1)); in verifyScrollCallbacksToHigherPage() 769 if ((pagePositionCurr < startPageIndex) || (pagePositionCurr > endPageIndex)) { in verifyScrollCallbacksToHigherPage() 771 ", but should be between " + startPageIndex + " and " + endPageIndex); in verifyScrollCallbacksToHigherPage() 845 private void verifyScrollCallbacksToLowerPage(int startPageIndex, int endPageIndex, in verifyScrollCallbacksToLowerPage() argument 852 endPageIndex, (int) positions.get(callbackCount - 1)); in verifyScrollCallbacksToLowerPage() 869 if ((pagePositionCurr > startPageIndex) || (pagePositionCurr < endPageIndex)) { in verifyScrollCallbacksToLowerPage() 871 ", but should be between " + endPageIndex + " and " + startPageIndex); in verifyScrollCallbacksToLowerPage() 941 final int endPageIndex = mViewPager.getCurrentItem(); in verifyScrollCallbacksToHigherPage() local 942 Assert.assertEquals("Current item after action", expectedEndPageIndex, endPageIndex); in verifyScrollCallbacksToHigherPage() [all …]
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
D | PageAdapter.java | 499 int endPageIndex = INVALID_PAGE_INDEX; in computeSelectedPages() local 505 startPageIndex = endPageIndex = pageIndex; in computeSelectedPages() 507 if (endPageIndex + 1 < pageIndex) { in computeSelectedPages() 508 PageRange pageRange = new PageRange(startPageIndex, endPageIndex); in computeSelectedPages() 512 endPageIndex = pageIndex; in computeSelectedPages() 516 && endPageIndex != INVALID_PAGE_INDEX) { in computeSelectedPages() 517 PageRange pageRange = new PageRange(startPageIndex, endPageIndex); in computeSelectedPages()
|