Home
last modified time | relevance | path

Searched refs:getPageCount (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Launcher2/src/com/android/launcher2/
DPagedView.java289 int getPageCount() { in getPageCount() method in PagedView
309 if (0 <= mCurrentPage && mCurrentPage < getPageCount()) { in updateCurrentPageScroll()
351 mCurrentPage = Math.max(0, Math.min(currentPage, getPageCount() - 1)); in setCurrentPage()
398 final int count = getPageCount(); in setOnLongClickListener()
455 mCurrentPage = Math.max(0, Math.min(mNextPage, getPageCount() - 1)); in computeScrollHelper()
894 if (getCurrentPage() < getPageCount() - 1) { in dispatchUnhandledMove()
905 if (mCurrentPage >= 0 && mCurrentPage < getPageCount()) { in addFocusables()
913 if (mCurrentPage < getPageCount() - 1) { in addFocusables()
1560 whichPage = Math.max(0, Math.min(whichPage, getPageCount() - 1)); in snapToPage()
1760 setCurrentPage(Math.min(getPageCount() - 1, currentPage)); in invalidatePageData()
[all …]
DAppsCustomizePagedView.java298 if (getPageCount() > 0) { in getMiddleComponentIndexOnCurrentPage()
DWorkspace.java1392 for (int i = 0; i < getPageCount(); i++) {
/packages/apps/Launcher3/src/com/android/launcher3/
DPagedView.java404 int getPageCount() { in getPageCount() method in PagedView
424 if (0 <= mCurrentPage && mCurrentPage < getPageCount()) { in updateCurrentPageScroll()
457 validatedPage = Math.max(0, Math.min(validatedPage, getPageCount() - 1)); in validateNewPage()
547 final int count = getPageCount(); in setOnLongClickListener()
1154 if (getPageCount() > 0) { in draw()
1172 … canvas.translate(display.left + mPageScrolls[mIsRtl ? 0 : (getPageCount() - 1)], display.top); in draw()
1236 if (getCurrentPage() < getPageCount() - 1) { in dispatchUnhandledMove()
1247 if (mCurrentPage >= 0 && mCurrentPage < getPageCount()) { in addFocusables()
1255 if (mCurrentPage < getPageCount() - 1) { in addFocusables()
1691 mTempVisiblePagesRange[1] = getPageCount() - 1; in onTouchEvent()
[all …]
DFolderPagedView.java147 for (int i = getPageCount() - 1; i >= 0; i--) { in setupContentDimensions()
352 setEnableOverscroll(getPageCount() > 1); in arrangeChildren()
355 mPageIndicator.setVisibility(getPageCount() > 1 ? View.VISIBLE : View.GONE); in arrangeChildren()
357 mFolder.mFolderName.setGravity(getPageCount() > 1 ? in arrangeChildren()
362 return getPageCount() > 0 ? in getDesiredWidth()
367 return getPageCount() > 0 ? in getDesiredHeight()
DFocusHelper.java108 final int pageCount = pagedView.getPageCount(); in onKey()
571 if (pageIndex + 1 >= workspace.getPageCount()) { in handleNextPageFirstItem()
DFolder.java560 if (mContent.getPageCount() > 1 && !mInfo.hasOption(FolderInfo.FLAG_MULTI_PAGE_ANIMATION)) { in animateOpen()
760 } else if (currentPage < (mContent.getPageCount() - 1) in onDragOver()
1284 if (mContent.getPageCount() > 1) { in onDrop()
DWorkspace.java1387 View child = getChildAt(getPageCount() - 1); in getEdgeVerticalPostion()
1917 for (int i = 0; i < getPageCount(); i++) { in updateChildrenLayersEnabled()
2130 int total = getPageCount(); in updateAccessibilityFlags()
/packages/apps/TV/src/com/android/tv/onboarding/
DWelcomeFragment.java717 protected int getPageCount() { in getPageCount() method in WelcomeFragment