Home
last modified time | relevance | path

Searched refs:pageRanges (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
DPageRangeUtils.java52 public static boolean contains(PageRange[] pageRanges, int pageIndex) { in contains() argument
53 final int rangeCount = pageRanges.length; in contains()
55 PageRange pageRange = pageRanges[i]; in contains()
117 public static PageRange[] normalize(PageRange[] pageRanges) { in normalize() argument
118 if (pageRanges == null) { in normalize()
122 final int oldRangeCount = pageRanges.length; in normalize()
124 return pageRanges; in normalize()
127 Arrays.sort(pageRanges, sComparator); in normalize()
131 PageRange currentRange = pageRanges[i]; in normalize()
132 PageRange nextRange = pageRanges[i + 1]; in normalize()
[all …]
/frameworks/base/core/java/android/print/
DPrintJobInfo.java522 public void setPages(PageRange[] pageRanges) { in setPages() argument
523 mPageRanges = pageRanges; in setPages()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPrintSpoolerService.java1226 List<PageRange> pageRanges = null; in parsePrintJobLocked() local
1231 if (pageRanges == null) { in parsePrintJobLocked()
1232 pageRanges = new ArrayList<PageRange>(); in parsePrintJobLocked()
1234 pageRanges.add(pageRange); in parsePrintJobLocked()
1241 if (pageRanges != null) { in parsePrintJobLocked()
1242 PageRange[] pageRangesArray = new PageRange[pageRanges.size()]; in parsePrintJobLocked()
1243 pageRanges.toArray(pageRangesArray); in parsePrintJobLocked()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPageAdapter.java749 PageRange[] pageRanges = new PageRange[pageRangesList.size()]; in computeRequestedPages() local
750 pageRangesList.toArray(pageRanges); in computeRequestedPages()
752 return PageRangeUtils.normalize(pageRanges); in computeRequestedPages()
DPrintActivity.java951 PageRange[] pageRanges = printJobInfo.getPages(); in onAdvancedPrintOptionsActivityResult() local
952 if (pageRanges != null && pageCount > 0) { in onAdvancedPrintOptionsActivityResult()
953 pageRanges = PageRangeUtils.normalize(pageRanges); in onAdvancedPrintOptionsActivityResult()
956 final int rangeCount = pageRanges.length; in onAdvancedPrintOptionsActivityResult()
958 PageRange pageRange = pageRanges[i]; in onAdvancedPrintOptionsActivityResult()