Searched refs:pageRanges (Results 1 – 5 of 5) sorted by relevance
52 public static boolean contains(PageRange[] pageRanges, int pageIndex) { in contains() argument53 final int rangeCount = pageRanges.length; in contains()55 PageRange pageRange = pageRanges[i]; in contains()117 public static PageRange[] normalize(PageRange[] pageRanges) { in normalize() argument118 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 …]
522 public void setPages(PageRange[] pageRanges) { in setPages() argument523 mPageRanges = pageRanges; in setPages()
1226 List<PageRange> pageRanges = null; in parsePrintJobLocked() local1231 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()
749 PageRange[] pageRanges = new PageRange[pageRangesList.size()]; in computeRequestedPages() local750 pageRangesList.toArray(pageRanges); in computeRequestedPages()752 return PageRangeUtils.normalize(pageRanges); in computeRequestedPages()
951 PageRange[] pageRanges = printJobInfo.getPages(); in onAdvancedPrintOptionsActivityResult() local952 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()