Home
last modified time | relevance | path

Searched refs:pageRange (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
DPageRangeUtils.java55 PageRange pageRange = pageRanges[i]; in contains() local
56 if (pageRange.contains(pageIndex)) { in contains()
350 PageRange pageRange = pageRanges[i]; in getNormalizedPageCount() local
351 if (PageRange.ALL_PAGES.equals(pageRange)) { in getNormalizedPageCount()
354 pageCount += pageRange.getSize(); in getNormalizedPageCount()
360 public static PageRange asAbsoluteRange(PageRange pageRange, int pageCount) { in asAbsoluteRange() argument
361 if (PageRange.ALL_PAGES.equals(pageRange)) { in asAbsoluteRange()
364 return pageRange; in asAbsoluteRange()
370 PageRange pageRange = pageRanges[i]; in isAllPages() local
371 if (isAllPages(pageRange)) { in isAllPages()
[all …]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPageAdapter.java533 PageRange pageRange = new PageRange(startPageIndex, endPageIndex); in computeSelectedPages() local
534 selectedPagesList.add(pageRange); in computeSelectedPages()
542 PageRange pageRange = new PageRange(startPageIndex, endPageIndex); in computeSelectedPages() local
543 selectedPagesList.add(pageRange); in computeSelectedPages()
580 PageRange pageRange = PageRangeUtils.asAbsoluteRange( in computePageIndexInDocument() local
582 skippedAdapterPages += pageRange.getSize(); in computePageIndexInDocument()
585 return pageRange.getEnd() - overshoot; in computePageIndexInDocument()
602 PageRange pageRange = mWrittenPages[i]; in computePageIndexInFile() local
603 if (!pageRange.contains(pageIndexInDocument)) { in computePageIndexInFile()
604 indexInFile += pageRange.getSize(); in computePageIndexInFile()
[all …]
DPrintActivity.java958 PageRange pageRange = pageRanges[i]; in onAdvancedPrintOptionsActivityResult() local
959 if (pageRange.getEnd() >= pageCount) { in onAdvancedPrintOptionsActivityResult()
960 final int rangeStart = pageRange.getStart(); in onAdvancedPrintOptionsActivityResult()
963 pageRange = new PageRange(rangeStart, rangeEnd); in onAdvancedPrintOptionsActivityResult()
964 validatedList.add(pageRange); in onAdvancedPrintOptionsActivityResult()
968 validatedList.add(pageRange); in onAdvancedPrintOptionsActivityResult()
1056 PageRange pageRange = selectedPages[i]; in updateSelectedPages() local
1057 if (pageRange.equals(PageRange.ALL_PAGES)) { in updateSelectedPages()
1061 shownStartPage = pageRange.getStart() + 1; in updateSelectedPages()
1062 shownEndPage = pageRange.getEnd() + 1; in updateSelectedPages()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPrintSpoolerService.java1230 PageRange pageRange = new PageRange(start, end); in parsePrintJobLocked() local
1234 pageRanges.add(pageRange); in parsePrintJobLocked()