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.java81 private int pageCount; field in DotsPageIndicator
235 pageCount = pages; in setPageCount()
246 dotCenterX = new float[pageCount]; in calculateDotPositions()
247 for (int i = 0; i < pageCount; i++) { in calculateDotPositions()
264 if (pageCount > 0) { in setCurrentPageImmediate()
270 if (pageCount > 0) { in resetState()
271 joiningFractions = new float[pageCount - 1]; in resetState()
273 dotRevealFractions = new float[pageCount]; in resetState()
332 return pageCount * dotDiameter + (pageCount - 1) * gap; in getRequiredWidth()
341 if (viewPager == null || pageCount == 0) { in onDraw()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DDotsPageIndicator.java81 private int pageCount; field in DotsPageIndicator
235 pageCount = pages; in setPageCount()
246 dotCenterX = new float[pageCount]; in calculateDotPositions()
247 for (int i = 0; i < pageCount; i++) { in calculateDotPositions()
264 if (pageCount > 0) { in setCurrentPageImmediate()
270 if (pageCount > 0) { in resetState()
271 joiningFractions = new float[pageCount - 1]; in resetState()
273 dotRevealFractions = new float[pageCount]; in resetState()
332 return pageCount * dotDiameter + (pageCount - 1) * gap; in getRequiredWidth()
341 if (viewPager == null || pageCount == 0) { in onDraw()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DFocusHelper.java114 final int pageCount = pagedView.getPageCount(); in onKey() local
120 pageCount, isLayoutRtl); in onKey()
226 int pageCount = workspace.getChildCount(); in handleHotseatButtonKeyEvent() local
265 pageCount, Utilities.isRtl(v.getResources())); in handleHotseatButtonKeyEvent()
344 final int pageCount = workspace.getChildCount(); in handleIconKeyEvent() local
364 pageCount, Utilities.isRtl(v.getResources())); in handleIconKeyEvent()
387 newPageIndex, pageCount, Utilities.isRtl(v.getResources())); in handleIconKeyEvent()
426 newPageIndex, pageCount, Utilities.isRtl(v.getResources())); in handleIconKeyEvent()
/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()
457 private static int handlePageDown(int pageIndex, int pageCount) {
458 if (pageIndex < pageCount -1) {
/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.java436 final int pageCount = mAdapter.getCount(); in updatePageIndicators() local
438 final int[] states = computePageIndicatorStates(page, pageIndicatorCount, pageCount); in updatePageIndicators()
459 static int[] computePageIndicatorStates(int page, int pageIndicatorCount, int pageCount) { in computePageIndicatorStates() argument
461 final int rangeSize = Math.min(pageIndicatorCount, pageCount); in computePageIndicatorStates()
468 if (rangeEnd >= pageCount) { in computePageIndicatorStates()
469 rangeEnd = pageCount - 1; in computePageIndicatorStates()
497 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/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DRecentsView.java691 final int pageCount = getPageCount(); in updateCurveProperties() local
692 for (int i = 0; i < pageCount; i++) { in updateCurveProperties()
1208 private boolean snapToPageRelative(int pageCount, int delta, boolean cycle) { in snapToPageRelative() argument
1209 if (pageCount == 0) { in snapToPageRelative()
1213 if (!cycle && (newPageUnbound < 0 || newPageUnbound >= pageCount)) { in snapToPageRelative()
1216 snapToPage((newPageUnbound + pageCount) % pageCount); in snapToPageRelative()
/packages/services/BuiltInPrintService/jni/plugins/genPCLm/inc/
DPCLmGenerator.h238 int pageCount; variable