/frameworks/base/core/java/android/print/ |
PageRange.aidl | 19 parcelable PageRange;
|
PageRange.java | 26 public final class PageRange implements Parcelable { 31 public static final PageRange ALL_PAGES = new PageRange(0, Integer.MAX_VALUE); 45 public PageRange(int start, int end) { 59 private PageRange (Parcel parcel) { 136 PageRange other = (PageRange) obj; 149 return "PageRange[<all pages>]"; 152 builder.append("PageRange[") 160 public static final Parcelable.Creator<PageRange> CREATOR [all...] |
IWriteResultCallback.aidl | 20 import android.print.PageRange; 29 void onWriteFinished(in PageRange[] pages, int sequence);
|
PrintDocumentAdapter.java | 42 * a call to {@link #onWrite(PageRange[], ParcelFileDescriptor, CancellationSignal, 66 * The {@link #onWrite(PageRange[], ParcelFileDescriptor, CancellationSignal, 100 * printed content. Then you can handle {@link #onWrite(PageRange[], ParcelFileDescriptor, 196 * invoke {@link WriteResultCallback#onWriteFinished(PageRange[])}, if writing 241 public abstract void onWrite(PageRange[] pages, ParcelFileDescriptor destination, 255 * PrintDocumentAdapter#onWrite(PageRange[], ParcelFileDescriptor, CancellationSignal, 273 public void onWriteFinished(PageRange[] pages) {
|
IPrintDocumentAdapter.aidl | 24 import android.print.PageRange; 37 void write(in PageRange[] pages, in ParcelFileDescriptor fd,
|
PrintFileDocumentAdapter.java | 87 public void onWrite(PageRange[] pages, ParcelFileDescriptor destination, 145 mResultCallback.onWriteFinished(new PageRange[] {PageRange.ALL_PAGES});
|
/external/chromium_org/printing/ |
page_range.h | 14 struct PageRange; 16 typedef std::vector<PageRange> PageRanges; 19 struct PRINTING_EXPORT PageRange { 23 bool operator==(const PageRange& rhs) const {
|
page_range_unittest.cc | 10 printing::PageRange range; 20 std::vector<int> pages(printing::PageRange::GetPages(ranges)); 34 std::vector<int> pages(printing::PageRange::GetPages(ranges)); 40 printing::PageRange range; 44 std::vector<int> pages(printing::PageRange::GetPages(ranges));
|
page_range.cc | 16 std::vector<int> PageRange::GetPages(const PageRanges& ranges) { 20 const PageRange& range = ranges[i];
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/ |
PageRangeUtils.java | 19 import android.print.PageRange; 30 private static final PageRange[] ALL_PAGES_RANGE = new PageRange[] {PageRange.ALL_PAGES}; 32 private static final Comparator<PageRange> sComparator = new Comparator<PageRange>() { 34 public int compare(PageRange lhs, PageRange rhs) { 50 public static boolean contains(PageRange[] pageRanges, int pageIndex) { 53 PageRange pageRange = pageRanges[i] [all...] |
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/ |
IPdfEditor.aidl | 20 import android.print.PageRange; 27 void removePages(in PageRange[] pages);
|
IPdfRenderer.aidl | 21 import android.print.PageRange;
|
/external/chromium_org/android_webview/java/src/org/chromium/android_webview/ |
AwPrintDocumentAdapter.java | 10 import android.print.PageRange; 66 public void onWrite(PageRange[] pages, ParcelFileDescriptor destination, 72 callback.onWriteFinished(new PageRange[] { PageRange.ALL_PAGES });
|
/packages/experimental/PrintService/src/foo/bar/printservice/ |
CustomPrintOptionsActivity.java | 7 import android.print.PageRange; 43 builder.setPages(new PageRange[] {new PageRange(1, 1), new PageRange(3, 3)});
|
/cts/tests/tests/print/src/android/print/cts/ |
PrintDocumentAdapterContractTest.java | 27 import android.print.PageRange; 88 PageRange[] pages = (PageRange[]) args[0]; 146 PageRange[] firstPages = new PageRange[] {new PageRange(0, 1)}; 203 PageRange[] pages = (PageRange[]) args[0]; 256 PageRange[] firstPages = new PageRange[] {new PageRange(0, 0)} [all...] |
PageRangeAdjustmentTest.java | 24 import android.print.PageRange; 77 PageRange[] pages = printJob.getInfo().getPages(); 78 assertTrue(pages.length == 1 && PageRange.ALL_PAGES.equals(pages[0])); 111 PageRange[] pages = (PageRange[]) args[0]; 176 PageRange[] pages = printJob.getInfo().getPages(); 179 assertTrue(pages.length == 1 && PageRange.ALL_PAGES.equals(pages[0])); 212 PageRange[] pages = (PageRange[]) args[0]; 218 callback.onWriteFinished(new PageRange[] {PageRange.ALL_PAGES}) [all...] |
/external/chromium_org/chrome/utility/ |
printing_handler.h | 20 struct PageRange; 41 const std::vector<printing::PageRange>& page_ranges); 59 std::vector<printing::PageRange>* page_ranges,
|
/external/chromium_org/printing/android/java/src/org/chromium/printing/ |
PrintingControllerImpl.java | 10 import android.print.PageRange; 183 PageRange[] pageRanges = convertIntegerArrayToPageRanges(mPages); 261 final PageRange[] ranges, 280 if (ranges.length == 1 && ranges[0].equals(PageRange.ALL_PAGES)) { 352 private static PageRange[] convertIntegerArrayToPageRanges(int[] pagesArray) { 353 PageRange[] pageRanges; 355 pageRanges = new PageRange[pagesArray.length]; 358 pageRanges[i] = new PageRange(page, page); 362 pageRanges = new PageRange[] { PageRange.ALL_PAGES } [all...] |
PrintDocumentAdapterWrapper.java | 10 import android.print.PageRange; 36 final PageRange[] ranges, 50 void onWriteFinished(PageRange[] pages); 86 public void onWriteFinished(PageRange[] pages) { 130 final PageRange[] ranges,
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
PageAdapter.java | 24 import android.print.PageRange; 62 private static final PageRange[] ALL_PAGES_ARRAY = new PageRange[] { 63 PageRange.ALL_PAGES 87 private PageRange[] mRequestedPages; 89 private PageRange[] mWrittenPages; 91 private PageRange[] mSelectedPages; 193 public void update(PageRange[] writtenPages, PageRange[] selectedPages, 357 public PageRange[] getRequestedPages() [all...] |
PrintPreviewController.java | 23 import android.print.PageRange; 123 public PageRange[] getSelectedPages() { 127 public PageRange[] getRequestedPages() { 132 PageRange[] writtenPages, PageRange[] selectedPages, MediaSize mediaSize, 306 PageRange[] writtenPages = (PageRange[]) args.arg1; 307 PageRange[] selectedPages = (PageRange[]) args.arg2; 358 PageRange shownPages = computeShownPages() [all...] |
/external/chromium_org/chrome/browser/printing/ |
pdf_to_emf_converter.cc | 114 void OnSucceeded(const std::vector<printing::PageRange>& page_ranges, 118 void RunCallback(const std::vector<printing::PageRange>& page_ranges, 124 const std::vector<printing::PageRange>& page_ranges, 183 RunCallbackOnUIThread(std::vector<printing::PageRange>(), 0.0); 193 std::vector<printing::PageRange>())); 198 const std::vector<printing::PageRange>& page_ranges, 206 RunCallback(std::vector<printing::PageRange>(), 0.0); 212 RunCallbackOnUIThread(std::vector<printing::PageRange>(), 0.0); 236 const std::vector<printing::PageRange>& page_ranges, 248 const std::vector<printing::PageRange>& page_ranges [all...] |
/packages/experimental/PrintApp/src/foo/bar/print/ |
PrintActivity.java | 32 import android.print.PageRange; 155 public void onWrite(final PageRange[] pages, 217 PageRange[] pageRanges = computePageRanges(mWrittenPages); 238 private PageRange[] computePageRanges(SparseIntArray writtenPages) { 239 List<PageRange> pageRanges = new ArrayList<PageRange>(); 254 PageRange pageRange = new PageRange(start, end); 255 pageRanges.add(pageRange); [all...] |
/external/chromium_org/chrome/common/ |
chrome_utility_printing_messages.h | 23 IPC_STRUCT_TRAITS_BEGIN(printing::PageRange) 105 std::vector<printing::PageRange>) 145 std::vector<printing::PageRange>, // Pages rendered
|
/external/chromium_org/chrome/service/ |
service_utility_process_host.h | 34 struct PageRange; 102 const std::vector<printing::PageRange>& page_ranges); 143 const std::vector<printing::PageRange>& page_ranges,
|