/frameworks/base/core/java/android/print/ |
PrintAttributes.java | 81 private @Nullable MediaSize mMediaSize; 93 mMediaSize = (parcel.readInt() == 1) ? MediaSize.createFromParcel(parcel) : null; 111 public @Nullable MediaSize getMediaSize() { 118 * @param mediaSize The media size. 122 public void setMediaSize(MediaSize mediaSize) { 123 mMediaSize = mediaSize; 414 builder.append("mediaSize: ").append(mMediaSize); 455 public static final class MediaSize { 456 private static final String LOG_TAG = "MediaSize"; [all...] |
PrinterCapabilitiesInfo.java | 25 import android.print.PrintAttributes.MediaSize; 61 private @NonNull List<MediaSize> mMediaSizes; 98 mMediaSizes = new ArrayList<MediaSize>(other.mMediaSizes); 129 public @NonNull List<MediaSize> getMediaSizes() { 378 mMediaSizes = new ArrayList<MediaSize>(); 381 mMediaSizes.add(MediaSize.createFromParcel(parcel)); 468 * @param mediaSize A media size. 474 * @see PrintAttributes.MediaSize 476 public @NonNull Builder addMediaSize(@NonNull MediaSize mediaSize, boolean isDefault) [all...] |
/cts/tests/tests/print/src/android/print/cts/ |
ClassParametersTest.java | 20 import android.print.PrintAttributes.MediaSize; 93 assertException(() -> new MediaSize(null, "label", 10, 10), 95 assertException(() -> new MediaSize("", "label", 10, 10), 97 assertException(() -> new MediaSize("id", null, 10, 10), 99 assertException(() -> new MediaSize("id", "", 10, 10), 101 assertException(() -> new MediaSize("id", "label", -10, 10), 103 assertException(() -> new MediaSize("id", "label", 0, 10), 105 assertException(() -> new MediaSize("id", "label", 10, -10), 107 assertException(() -> new MediaSize("id", "label", 10, 0),
|
PrinterCapabilitiesTest.java | 23 import android.print.PrintAttributes.MediaSize; 67 * @param mediaSize The media size to use 72 private List<PrinterInfo> generatePrinters(PrinterId printerId, MediaSize mediaSize, 78 if (mediaSize != null) { 86 .addMediaSize(mediaSize, true) 104 * @param mediaSize The media size to match 108 private void waitForMediaSizeChange(PrintAttributes[] printAttributes, MediaSize mediaSize) 113 !printAttributes[0].getMediaSize().equals(mediaSize)) { [all...] |
PrintAttributesTest.java | 23 import android.print.PrintAttributes.MediaSize; 58 private final MediaSize MEDIA_SIZES[] = { 59 MediaSize.ISO_A3, MediaSize.ISO_A4, MediaSize.ISO_A5 87 * @param mediaSize {@link MediaSize} to use 94 private PrintAttributes createAttributes(MediaSize mediaSize, int colorMode, int duplexMode, 96 if (mediaSize == null && colorMode == 0 && duplexMode == 0 && resolution == null) [all...] |
PrintDocumentAdapterContractTest.java | 30 import android.print.PrintAttributes.MediaSize; 144 .setMediaSize(MediaSize.NA_LETTER) 163 .setMediaSize(MediaSize.ISO_A3) 259 .setMediaSize(MediaSize.NA_LETTER) 390 .setMediaSize(MediaSize.NA_LETTER) 409 .setMediaSize(MediaSize.ISO_A3) 422 .setMediaSize(MediaSize.ISO_A3.asLandscape()) 435 .setMediaSize(MediaSize.ISO_A4.asLandscape()) 448 .setMediaSize(MediaSize.ISO_A4.asLandscape()) 461 .setMediaSize(MediaSize.ISO_A4.asLandscape() [all...] |
CustomPrintOptionsTest.java | 23 import android.print.PrintAttributes.MediaSize; 62 private final MediaSize DEFAULT_MEDIA_SIZE = MediaSize.ISO_A0; 72 private final MediaSize[] MEDIA_SIZES = { DEFAULT_MEDIA_SIZE, MediaSize.ISO_B0 }; 119 * @param mediaSize The media size to use 120 * @param isPortrait If the mediaSize is portrait 128 final PageRange[] pages, final MediaSize mediaSize, final boolean isPortrait, 216 if (mediaSize != null) [all...] |
PrinterDiscoverySessionLifecycleTest.java | 25 import android.print.PrintAttributes.MediaSize; 463 .addMediaSize(MediaSize.ISO_A4, true) 464 .addMediaSize(MediaSize.ISO_A5, false)
|
PrinterInfoTest.java | 27 import android.print.PrintAttributes.MediaSize; 182 .addMediaSize(MediaSize.ISO_A4, true)
|
PageRangeAdjustmentTest.java | 27 import android.print.PrintAttributes.MediaSize; 670 .addMediaSize(MediaSize.ISO_A4, true) 671 .addMediaSize(MediaSize.ISO_A5, false)
|
PrintServicesTest.java | 38 import android.print.PrintAttributes.MediaSize; 171 .addMediaSize(MediaSize.ISO_A4, true)
|
PrintJobTest.java | 23 import android.print.PrintAttributes.MediaSize; 143 .addMediaSize(MediaSize.ISO_A4, true)
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/ |
MediaSizeUtils.java | 23 import android.print.PrintAttributes.MediaSize; 36 private static Map<MediaSize, Integer> sMediaSizeToStandardMap; 51 public static MediaSize getDefault(Context context) { 53 return MediaSize.getStandardMediaSizeById(mediaSizeId); 57 * Get the standard the {@link MediaSize} belongs to. 60 * @param mediaSize The {@link MediaSize} to be resolved 62 * @return The standard the {@link MediaSize} belongs to 64 private static int getStandardForMediaSize(Context context, MediaSize mediaSize) { [all...] |
/frameworks/base/core/java/android/print/pdf/ |
PrintedPdfDocument.java | 26 import android.print.PrintAttributes.MediaSize; 84 MediaSize mediaSize = attributes.getMediaSize(); 87 mPageWidth = (int) (((float) mediaSize.getWidthMils() / MILS_PER_INCH) 89 mPageHeight = (int) (((float) mediaSize.getHeightMils() / MILS_PER_INCH)
|
/packages/experimental/PrintService/src/foo/bar/printservice/ |
CustomPrintOptionsActivity.java | 9 import android.print.PrintAttributes.MediaSize; 35 .setMediaSize(MediaSize.ISO_A5)
|
MyPrintService.java | 34 import android.print.PrintAttributes.MediaSize; 461 .addMediaSize(MediaSize.ISO_A4, true) 462 .addMediaSize(MediaSize.NA_GOVT_LETTER, false) 463 .addMediaSize(MediaSize.JPN_YOU4, false)
|
/packages/experimental/PrintService2/src/foo/bar/printservice2/ |
MyPrintService.java | 141 .addMediaSize(PrintAttributes.MediaSize.ISO_A2, false) 142 .addMediaSize(PrintAttributes.MediaSize.ISO_A3, false) 143 .addMediaSize(PrintAttributes.MediaSize.ISO_A4, false) 144 .addMediaSize(PrintAttributes.MediaSize.ISO_A5, false) 145 .addMediaSize(PrintAttributes.MediaSize.ISO_A6, false) 146 .addMediaSize(PrintAttributes.MediaSize.NA_LETTER, true) 177 .addMediaSize(PrintAttributes.MediaSize.ISO_A4, true) 178 .addMediaSize(PrintAttributes.MediaSize.ISO_A5, false)
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/ |
PageContentView.java | 22 import android.print.PrintAttributes.MediaSize; 41 private MediaSize mMediaSize; 80 MediaSize mediaSize, Margins minMargins) { 86 ? mediaSize != null : !mMediaSize.equals(mediaSize); 97 mMediaSize = mediaSize;
|
/frameworks/support/core-utils/kitkat/android/support/v4/print/ |
PrintHelperKitkat.java | 40 import android.print.PrintAttributes.MediaSize; 233 PrintAttributes.MediaSize mediaSize; 235 mediaSize = PrintAttributes.MediaSize.UNKNOWN_PORTRAIT; 237 mediaSize = PrintAttributes.MediaSize.UNKNOWN_LANDSCAPE; 240 .setMediaSize(mediaSize) 513 MediaSize mediaSize; [all...] |
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
PrintPreviewController.java | 24 import android.print.PrintAttributes.MediaSize; 132 PageRange[] writtenPages, PageRange[] selectedPages, MediaSize mediaSize, 164 args.arg3 = mediaSize; 299 MediaSize mediaSize = (MediaSize) args.arg3; 305 mediaSize, margins);
|
PrintActivity.java | 51 import android.print.PrintAttributes.MediaSize; 191 private ArrayAdapter<SpinnerItem<MediaSize>> mMediaSizeSpinnerAdapter; 807 MediaSize oldMediaSize = currAttributes.getMediaSize(); 808 MediaSize newMediaSize = newAttributes.getMediaSize(); 811 MediaSize newMediaSizePortrait = newAttributes.getMediaSize().asPortrait(); 813 MediaSize supportedSizePortrait = mMediaSizeSpinnerAdapter.getItem(i) [all...] |
PageAdapter.java | 27 import android.print.PrintAttributes.MediaSize; 108 private MediaSize mMediaSize; 206 int documentPageCount, MediaSize mediaSize, Margins minMargins) { 235 if (mMediaSize == null || !mMediaSize.equals(mediaSize)) { 236 mMediaSize = mediaSize;
|
/frameworks/base/core/tests/coretests/src/android/print/ |
IPrintManagerParametersTest.java | 31 import android.print.PrintAttributes.MediaSize; 135 .addMediaSize(MediaSize.ISO_A4, true)
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
PageContentRepository.java | 33 import android.print.PrintAttributes.MediaSize; 343 MediaSize mediaSize, Margins minMargins) { 346 printAttributes.setMediaSize(mediaSize); [all...] |
PrintSpoolerService.java | 40 import android.print.PrintAttributes.MediaSize; 813 private static final String TAG_MEDIA_SIZE = "mediaSize"; [all...] |