Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/widget/
DDotsPageIndicator.java79 private int pageCount; field in DotsPageIndicator
233 pageCount = pages; in setPageCount()
244 dotCenterX = new float[pageCount]; in calculateDotPositions()
245 for (int i = 0; i < pageCount; i++) { in calculateDotPositions()
262 if (pageCount > 0) { in setCurrentPageImmediate()
268 if (pageCount > 0) { in resetState()
269 joiningFractions = new float[pageCount - 1]; in resetState()
271 dotRevealFractions = new float[pageCount]; in resetState()
330 return pageCount * dotDiameter + (pageCount - 1) * gap; in getRequiredWidth()
339 if (viewPager == null || pageCount == 0) { in onDraw()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DFocusLogic.java85 int pageCount, boolean isRtl) { in handleKeyEvent() argument
93 cntX, cntY, iconIdx, pageIndex, pageCount)); in handleKeyEvent()
102 } else if (isRtl && newIndex == NOOP && pageIndex < pageCount - 1) { in handleKeyEvent()
108 if (!isRtl && newIndex == NOOP && pageIndex < pageCount - 1) { in handleKeyEvent()
127 newIndex = handlePageDown(pageIndex, pageCount); in handleKeyEvent()
481 private static int handlePageDown(int pageIndex, int pageCount) {
482 if (pageIndex < pageCount -1) {
/packages/apps/Launcher2/src/com/android/launcher2/
DFocusHelper.java143 final int pageCount = container.getChildCount(); in handlePagedViewGridLayoutWidgetKeyEvent() local
180 if (pageIndex < (pageCount - 1)) { in handlePagedViewGridLayoutWidgetKeyEvent()
244 if (pageIndex < (pageCount - 1)) { in handlePagedViewGridLayoutWidgetKeyEvent()
303 final int pageCount = container.getChildCount(); in handleAppsCustomizeKeyEvent() local
340 if (pageIndex < (pageCount - 1)) { in handleAppsCustomizeKeyEvent()
404 if (pageIndex < (pageCount - 1)) { in handleAppsCustomizeKeyEvent()
672 int pageCount = workspace.getChildCount(); in handleIconKeyEvent() local
707 if (pageIndex < (pageCount - 1)) { in handleIconKeyEvent()
771 if (pageIndex < (pageCount - 1)) { in handleIconKeyEvent()
DPagedView.java598 final int pageCount = getChildCount(); in scrollToNewPageWithoutMovingPages() local
599 for (int i = 0; i < pageCount; i++) { in scrollToNewPageWithoutMovingPages()
785 final int pageCount = getChildCount(); in getVisiblePages() local
787 if (pageCount > 0) { in getVisiblePages()
789 int leftScreen = isRtl ? pageCount - 1 : 0; in getVisiblePages()
791 int endIndex = isRtl ? 0 : pageCount - 1; in getVisiblePages()
835 final int pageCount = getChildCount(); in dispatchDraw() local
836 if (pageCount > 0) { in dispatchDraw()
/packages/apps/Launcher3/src/com/android/launcher3/
DFocusHelper.java111 final int pageCount = pagedView.getPageCount(); in onKey() local
117 pageCount, isLayoutRtl); in onKey()
223 int pageCount = workspace.getChildCount(); in handleHotseatButtonKeyEvent() local
262 pageCount, Utilities.isRtl(v.getResources())); in handleHotseatButtonKeyEvent()
355 final int pageCount = workspace.getChildCount(); in handleIconKeyEvent() local
375 pageCount, Utilities.isRtl(v.getResources())); in handleIconKeyEvent()
398 newPageIndex, pageCount, Utilities.isRtl(v.getResources())); in handleIconKeyEvent()
437 newPageIndex, pageCount, Utilities.isRtl(v.getResources())); in handleIconKeyEvent()
/packages/services/BuiltInPrintService/jni/plugins/genPCLm/src/
DgenPCLm.cpp144 if (currDuplexDisposition == duplex_longEdge && !(pageCount % 2) && mirrorBackside) { in fixXRef()
442 if (currDuplexDisposition == duplex_longEdge && !(pageCount % 2) && mirrorBackside) { in injectRLEStrip()
460 if (currDuplexDisposition == duplex_longEdge && !(pageCount % 2) && mirrorBackside) { in injectRLEStrip()
531 if (currDuplexDisposition == duplex_longEdge && !(pageCount % 2) && mirrorBackside) { in injectLZStrip()
549 if (currDuplexDisposition == duplex_longEdge && !(pageCount % 2) && mirrorBackside) { in injectLZStrip()
626 if (currDuplexDisposition == duplex_longEdge && !(pageCount % 2) && mirrorBackside) { in injectImageTransform()
657 if (currDuplexDisposition == duplex_longEdge && !(pageCount % 2) && mirrorBackside) { in injectJPEG()
676 if (currDuplexDisposition == duplex_longEdge && !(pageCount % 2) && mirrorBackside) { in injectJPEG()
774 if (destColorSpace == adobeRGB && 1 == pageCount) { in writePDFGrammarPage()
1367 pageCount = 0; in PCLmGenerator()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerFragment.java437 final int pageCount = mAdapter.getCount(); in updatePageIndicators() local
439 final int[] states = computePageIndicatorStates(page, pageIndicatorCount, pageCount); in updatePageIndicators()
460 static int[] computePageIndicatorStates(int page, int pageIndicatorCount, int pageCount) { in computePageIndicatorStates() argument
462 final int rangeSize = Math.min(pageIndicatorCount, pageCount); in computePageIndicatorStates()
469 if (rangeEnd >= pageCount) { in computePageIndicatorStates()
470 rangeEnd = pageCount - 1; in computePageIndicatorStates()
498 if (rangeEnd < pageCount - 1) { in computePageIndicatorStates()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
DEmojiCategory.java68 public CategoryProperties(final int categoryId, final int pageCount) { in CategoryProperties() argument
70 mPageCount = pageCount; in CategoryProperties()
433 final int pageCount = (keys.size() - 1) / maxPageCount + 1; in sortKeysIntoPages() local
434 final Key[][] retval = new Key[pageCount][maxPageCount]; in sortKeysIntoPages()
/packages/services/BuiltInPrintService/jni/plugins/genPCLm/inc/
DPCLmGenerator.h238 int pageCount; variable