Searched defs:getPageCount (Results 1 - 2 of 2) sorted by relevance

/packages/apps/Launcher2/src/com/android/launcher2/
H A DPagedView.java289 int getPageCount() { method in class:PagedView
309 if (0 <= mCurrentPage && mCurrentPage < getPageCount()) {
351 mCurrentPage = Math.max(0, Math.min(currentPage, getPageCount() - 1));
398 final int count = getPageCount();
455 mCurrentPage = Math.max(0, Math.min(mNextPage, getPageCount() - 1));
894 if (getCurrentPage() < getPageCount() - 1) {
905 if (mCurrentPage >= 0 && mCurrentPage < getPageCount()) {
913 if (mCurrentPage < getPageCount() - 1) {
1560 whichPage = Math.max(0, Math.min(whichPage, getPageCount() - 1));
1760 setCurrentPage(Math.min(getPageCount()
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/
H A DPagedView.java409 int getPageCount() { method in class:PagedView
429 if (0 <= mCurrentPage && mCurrentPage < getPageCount()) {
462 validatedPage = Math.max(0, Math.min(validatedPage, getPageCount() - 1));
552 final int count = getPageCount();
1158 if (getPageCount() > 0) {
1176 canvas.translate(display.left + mPageScrolls[mIsRtl ? 0 : (getPageCount() - 1)], display.top);
1229 if (getCurrentPage() < getPageCount() - 1) {
1240 if (mCurrentPage >= 0 && mCurrentPage < getPageCount()) {
1248 if (mCurrentPage < getPageCount() - 1) {
1684 mTempVisiblePagesRange[1] = getPageCount()
[all...]

Completed in 81 milliseconds