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.java53 PageRange pageRange = pageRanges[i]; in contains() local
54 if (pageRange.contains(pageIndex)) { in contains()
187 PageRange pageRange = pageRanges[i]; in getNormalizedPageCount() local
188 if (PageRange.ALL_PAGES.equals(pageRange)) { in getNormalizedPageCount()
191 pageCount += pageRange.getSize(); in getNormalizedPageCount()
197 public static PageRange asAbsoluteRange(PageRange pageRange, int pageCount) { in asAbsoluteRange() argument
198 if (PageRange.ALL_PAGES.equals(pageRange)) { in asAbsoluteRange()
201 return pageRange; in asAbsoluteRange()
207 PageRange pageRange = pageRanges[i]; in isAllPages() local
208 if (isAllPages(pageRange)) { in isAllPages()
[all …]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPageAdapter.java468 PageRange pageRange = new PageRange(startPageIndex, endPageIndex); in computeSelectedPages() local
469 selectedPagesList.add(pageRange); in computeSelectedPages()
477 PageRange pageRange = new PageRange(startPageIndex, endPageIndex); in computeSelectedPages() local
478 selectedPagesList.add(pageRange); in computeSelectedPages()
508 PageRange pageRange = PageRangeUtils.asAbsoluteRange( in computePageIndexInDocument() local
510 skippedAdapterPages += pageRange.getSize(); in computePageIndexInDocument()
513 return pageRange.getEnd() - overshoot; in computePageIndexInDocument()
530 PageRange pageRange = mWrittenPages[i]; in computePageIndexInFile() local
531 if (!pageRange.contains(pageIndexInDocument)) { in computePageIndexInFile()
532 indexInFile += pageRange.getSize(); in computePageIndexInFile()
[all …]
DPrintActivity.java742 PageRange pageRange = pageRanges[i]; in onAdvancedPrintOptionsActivityResult() local
743 if (pageRange.getEnd() >= pageCount) { in onAdvancedPrintOptionsActivityResult()
744 final int rangeStart = pageRange.getStart(); in onAdvancedPrintOptionsActivityResult()
747 pageRange = new PageRange(rangeStart, rangeEnd); in onAdvancedPrintOptionsActivityResult()
748 validatedList.add(pageRange); in onAdvancedPrintOptionsActivityResult()
752 validatedList.add(pageRange); in onAdvancedPrintOptionsActivityResult()
832 PageRange pageRange = selectedPages[i]; in updateSelectedPages() local
833 if (pageRange.equals(PageRange.ALL_PAGES)) { in updateSelectedPages()
837 shownStartPage = pageRange.getStart() + 1; in updateSelectedPages()
838 shownEndPage = pageRange.getEnd() + 1; in updateSelectedPages()
[all …]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPrintSpoolerService.java1035 PageRange pageRange = new PageRange(start, end); in parsePrintJob() local
1039 pageRanges.add(pageRange); in parsePrintJob()