Searched refs:PageRangeUtils (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
D | PageAdapter.java | 47 import com.android.printspooler.util.PageRangeUtils; 262 mSelectedPageCount = PageRangeUtils.getNormalizedPageCount( in update() 273 if (PageRangeUtils.isAllPages(writtenPages)) { in update() 408 mSelectedPageCount = PageRangeUtils.getNormalizedPageCount( in getSelectedPages() 580 PageRange pageRange = PageRangeUtils.asAbsoluteRange( in computePageIndexInDocument() 592 if (!PageRangeUtils.contains(mSelectedPages, pageIndexInDocument)) { in computePageIndexInFile() 617 PageRange pageRange = PageRangeUtils.asAbsoluteRange(pagesInDocument[i], in setConfirmedPages() 645 PageRangeUtils.contains(mRequestedPages, pageInDocument)) { in computeRequestedPages() 662 remainingPagesToRequest -= PageRangeUtils.getNormalizedPageCount( in computeRequestedPages() 679 PageRange selectedRange = PageRangeUtils.asAbsoluteRange(mSelectedPages[i], in computeRequestedPages() [all …]
|
D | PrintActivity.java | 102 import com.android.printspooler.util.PageRangeUtils; 569 final int pageCount = PageRangeUtils.getNormalizedPageCount( in onUpdateCompleted() 953 pageRanges = PageRangeUtils.normalize(pageRanges); in onAdvancedPrintOptionsActivityResult() 1021 selectedPages = PageRangeUtils.normalize(selectedPages); in updateSelectedPages() 1025 if (PageRangeUtils.isAllPages(selectedPages, pageInDocumentCount)) { in updateSelectedPages() 2046 return PageRangeUtils.parsePageRanges(mPageRangeEditText.getText(), pageCount); in computeSelectedPages() 2970 PageRange[] ranges = PageRangeUtils.parsePageRanges(editable, pageCount); in afterTextChanged() 3243 final int newPageCount = PageRangeUtils.getNormalizedPageCount( in updatePrintJob()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/ |
D | PageRangeUtils.java | 30 public final class PageRangeUtils { class 41 private PageRangeUtils() { in PageRangeUtils() method in PageRangeUtils 317 return PageRangeUtils.normalize(ranges.toArray(new PageRange[ranges.size()])); in parsePageRanges() 423 } else if (PageRangeUtils.contains(pagesWrittenToFile, pagesInDocRequested, pageCount)) { in computeWhichPagesInFileToPrint() 429 PageRangeUtils.offset(pagesInDocRequested.clone(), offset); in computeWhichPagesInFileToPrint()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
D | RemotePrintDocument.java | 43 import com.android.printspooler.util.PageRangeUtils; 100 && !PageRangeUtils.contains(mDocumentInfo.pagesWrittenToFile, 110 PageRangeUtils.computeWhichPagesInFileToPrint( 250 && pages != null && !PageRangeUtils.contains(mUpdateSpec.pages, pages, in update() 1113 PageRange[] writtenPages = PageRangeUtils.normalize(pages); in handleOnWriteFinished() 1114 PageRange[] printedPages = PageRangeUtils.computeWhichPagesInFileToPrint( in handleOnWriteFinished()
|
D | PageContentRepository.java | 47 import com.android.printspooler.util.PageRangeUtils; 573 if (PageRangeUtils.isAllPages(selectedPages)) { in startPreload() 612 if (PageRangeUtils.contains(writtenPages, range.getStart() + i)) { in startPreload()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/ |
D | PdfManipulationService.java | 36 import com.android.printspooler.util.PageRangeUtils; 245 ranges = PageRangeUtils.normalize(ranges); in removePages()
|