Home
last modified time | relevance | path

Searched refs:currentPage (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/src/com/android/settings/widget/
DDotsPageIndicator.java80 private int currentPage; field in DotsPageIndicator
257 currentPage = viewPager.getCurrentItem(); in setCurrentPageImmediate()
259 currentPage = 0; in setCurrentPageImmediate()
263 selectedDotX = dotCenterX[currentPage]; in setCurrentPageImmediate()
403 && !(page == currentPage && selectedDotInPosition == true)) { in getUnselectedPath()
556 if (now == currentPage || pageCount == 0) { in setSelectedPage()
560 int was = currentPage; in setSelectedPage()
561 currentPage = now; in setSelectedPage()
725 return currentPage; in getCurrentPage()
/packages/apps/Launcher2/src/com/android/launcher2/
DPagedViewWithDraggableItems.java153 final View currentPage = getPageAt(mCurrentPage); in determineDraggingStart() local
154 if (currentPage != null) { in determineDraggingStart()
155 currentPage.cancelLongPress(); in determineDraggingStart()
DPagedView.java340 void setCurrentPage(int currentPage) { in setCurrentPage() argument
351 mCurrentPage = Math.max(0, Math.min(currentPage, getPageCount() - 1)); in setCurrentPage()
955 final View currentPage = getPageAt(mCurrentPage); in requestDisallowInterceptTouchEvent() local
956 currentPage.cancelLongPress(); in requestDisallowInterceptTouchEvent()
1134 final View currentPage = getPageAt(mCurrentPage); in cancelCurrentPageLongPress() local
1135 if (currentPage != null) { in cancelCurrentPageLongPress()
1136 currentPage.cancelLongPress(); in cancelCurrentPageLongPress()
1646 int currentPage = -1; field in PagedView.SavedState
1654 currentPage = in.readInt(); in SavedState()
1660 out.writeInt(currentPage); in writeToParcel()
[all …]
DAppsCustomizePagedView.java299 int currentPage = getCurrentPage(); in getMiddleComponentIndexOnCurrentPage() local
300 if (currentPage < mNumAppsPages) { in getMiddleComponentIndexOnCurrentPage()
301 PagedViewCellLayout layout = (PagedViewCellLayout) getPageAt(currentPage); in getMiddleComponentIndexOnCurrentPage()
306 i = (currentPage * numItemsPerPage) + (childCount / 2); in getMiddleComponentIndexOnCurrentPage()
310 PagedViewGridLayout layout = (PagedViewGridLayout) getPageAt(currentPage); in getMiddleComponentIndexOnCurrentPage()
315 ((currentPage - mNumAppsPages) * numItemsPerPage) + (childCount / 2); in getMiddleComponentIndexOnCurrentPage()
974 private void updateCurrentTab(int currentPage) { in updateCurrentTab() argument
979 if (currentPage >= mNumAppsPages && in updateCurrentTab()
982 } else if (currentPage < mNumAppsPages && in updateCurrentTab()
DFolder.java809 int currentPage = mLauncher.getWorkspace().getCurrentPage(); in centerAboutIcon() local
812 mLauncher.getWorkspace().setFinalScrollForPageChange(currentPage); in centerAboutIcon()
814 CellLayout currentLayout = (CellLayout) mLauncher.getWorkspace().getChildAt(currentPage); in centerAboutIcon()
819 mLauncher.getWorkspace().resetFinalScrollForPageChange(currentPage); in centerAboutIcon()
DWorkspace.java661 final CellLayout currentPage = (CellLayout) getChildAt(mCurrentPage); in onInterceptTouchEvent() local
662 if (!currentPage.lastDownOnOccupiedCell()) { in onInterceptTouchEvent()
/packages/apps/Launcher3/src/com/android/launcher3/
DFolderPagedView.java296 CellLayout currentPage = null; in arrangeChildren() local
304 if (currentPage == null || position >= mMaxItemsPerPage) { in arrangeChildren()
307 currentPage = pageItr.next(); in arrangeChildren()
309 currentPage = createAndAddNewPage(); in arrangeChildren()
330 currentPage.addViewToCellLayout( in arrangeChildren()
DPagedView.java464 public void setCurrentPage(int currentPage) { in setCurrentPage() argument
474 mCurrentPage = validateNewPage(currentPage); in setCurrentPage()
1297 final View currentPage = getPageAt(mCurrentPage); in requestDisallowInterceptTouchEvent() local
1298 currentPage.cancelLongPress(); in requestDisallowInterceptTouchEvent()
1471 final View currentPage = getPageAt(mCurrentPage); in cancelCurrentPageLongPress() local
1472 if (currentPage != null) { in cancelCurrentPageLongPress()
1473 currentPage.cancelLongPress(); in cancelCurrentPageLongPress()
2143 int currentPage = -1; field in PagedView.SavedState
2151 currentPage = in.readInt(); in SavedState()
2157 out.writeInt(currentPage); in writeToParcel()
DFolder.java751 int currentPage = mContent.getNextPage(); in onDragOver() local
758 if (currentPage > 0 && (mContent.mIsRtl ? isOutsideRightEdge : isOutsideLeftEdge)) { in onDragOver()
760 } else if (currentPage < (mContent.getPageCount() - 1) in onDragOver()
DWorkspace.java888 int currentPage = getNextPage(); in stripEmptyScreens() local
913 if (indexOfChild(cl) < currentPage) { in stripEmptyScreens()
936 setCurrentPage(currentPage - pageShift); in stripEmptyScreens()
1097 final CellLayout currentPage = (CellLayout) getChildAt(mCurrentPage); in onInterceptTouchEvent() local
1098 if (currentPage != null) { in onInterceptTouchEvent()