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.java527 PageRange pageRange = new PageRange(startPageIndex, endPageIndex); in computeSelectedPages() local
528 selectedPagesList.add(pageRange); in computeSelectedPages()
536 PageRange pageRange = new PageRange(startPageIndex, endPageIndex); in computeSelectedPages() local
537 selectedPagesList.add(pageRange); in computeSelectedPages()
574 PageRange pageRange = PageRangeUtils.asAbsoluteRange( in computePageIndexInDocument() local
576 skippedAdapterPages += pageRange.getSize(); in computePageIndexInDocument()
579 return pageRange.getEnd() - overshoot; in computePageIndexInDocument()
596 PageRange pageRange = mWrittenPages[i]; in computePageIndexInFile() local
597 if (!pageRange.contains(pageIndexInDocument)) { in computePageIndexInFile()
598 indexInFile += pageRange.getSize(); in computePageIndexInFile()
[all …]
DPrintActivity.java921 PageRange pageRange = pageRanges[i]; in onAdvancedPrintOptionsActivityResult() local
922 if (pageRange.getEnd() >= pageCount) { in onAdvancedPrintOptionsActivityResult()
923 final int rangeStart = pageRange.getStart(); in onAdvancedPrintOptionsActivityResult()
926 pageRange = new PageRange(rangeStart, rangeEnd); in onAdvancedPrintOptionsActivityResult()
927 validatedList.add(pageRange); in onAdvancedPrintOptionsActivityResult()
931 validatedList.add(pageRange); in onAdvancedPrintOptionsActivityResult()
1019 PageRange pageRange = selectedPages[i]; in updateSelectedPages() local
1020 if (pageRange.equals(PageRange.ALL_PAGES)) { in updateSelectedPages()
1024 shownStartPage = pageRange.getStart() + 1; in updateSelectedPages()
1025 shownEndPage = pageRange.getEnd() + 1; in updateSelectedPages()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPrintSpoolerService.java1187 PageRange pageRange = new PageRange(start, end); in parsePrintJob() local
1191 pageRanges.add(pageRange); in parsePrintJob()