Home
last modified time | relevance | path

Searched refs:selectedPages (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPageContentRepository.java149 public void startPreload(@NonNull PageRange visiblePages, @NonNull PageRange[] selectedPages, in startPreload() argument
155 mScheduledPreloadSelectedPages = selectedPages; in startPreload()
158 mRenderer.startPreload(visiblePages, selectedPages, writtenPages, mLastRenderSpec); in startPreload()
571 void startPreload(@NonNull PageRange visiblePages, @NonNull PageRange[] selectedPages, in startPreload() argument
573 if (PageRangeUtils.isAllPages(selectedPages)) { in startPreload()
574 selectedPages = new PageRange[]{new PageRange(0, mPageCount - 1)}; in startPreload()
579 + Arrays.toString(selectedPages)); in startPreload()
582 int firstVisiblePageIndex = findIndexOfPage(visiblePages.getStart(), selectedPages); in startPreload()
583 int lastVisiblePageIndex = findIndexOfPage(visiblePages.getEnd(), selectedPages); in startPreload()
605 for (int rangeNum = 0; rangeNum < selectedPages.length; rangeNum++) { in startPreload()
[all …]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPageAdapter.java208 public void update(PageRange[] writtenPages, PageRange[] selectedPages, in update() argument
260 } else if (!Arrays.equals(mSelectedPages, selectedPages)) { in update()
261 mSelectedPages = selectedPages; in update()
405 PageRange[] selectedPages = computeSelectedPages(); in getSelectedPages() local
406 if (!Arrays.equals(mSelectedPages, selectedPages)) { in getSelectedPages()
407 mSelectedPages = selectedPages; in getSelectedPages()
546 PageRange[] selectedPages = new PageRange[selectedPagesList.size()]; in computeSelectedPages() local
547 selectedPagesList.toArray(selectedPages); in computeSelectedPages()
549 return selectedPages; in computeSelectedPages()
DPrintPreviewController.java132 PageRange[] writtenPages, PageRange[] selectedPages, MediaSize mediaSize, in onContentUpdated() argument
163 args.arg2 = selectedPages; in onContentUpdated()
298 PageRange[] selectedPages = (PageRange[]) args.arg2; in handleMessage() local
304 mPageAdapter.update(writtenPages, selectedPages, pageCount, in handleMessage()
DPrintActivity.java1009 PageRange[] selectedPages = mPrintPreviewController.getSelectedPages(); in updateSelectedPagesFromPreview() local
1010 if (!Arrays.equals(mSelectedPages, selectedPages)) { in updateSelectedPagesFromPreview()
1011 updateSelectedPages(selectedPages, in updateSelectedPagesFromPreview()
1016 private void updateSelectedPages(PageRange[] selectedPages, int pageInDocumentCount) { in updateSelectedPages() argument
1017 if (selectedPages == null || selectedPages.length <= 0) { in updateSelectedPages()
1021 selectedPages = PageRangeUtils.normalize(selectedPages); in updateSelectedPages()
1025 if (PageRangeUtils.isAllPages(selectedPages, pageInDocumentCount)) { in updateSelectedPages()
1026 selectedPages = new PageRange[] {PageRange.ALL_PAGES}; in updateSelectedPages()
1029 if (Arrays.equals(mSelectedPages, selectedPages)) { in updateSelectedPages()
1033 mSelectedPages = selectedPages; in updateSelectedPages()
[all …]