Home
last modified time | relevance | path

Searched refs:MediaSize (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/core/java/android/print/
DPrintAttributes.java85 private @Nullable MediaSize mMediaSize;
97 mMediaSize = (parcel.readInt() == 1) ? MediaSize.createFromParcel(parcel) : null; in PrintAttributes()
115 public @Nullable MediaSize getMediaSize() { in getMediaSize()
126 public void setMediaSize(MediaSize mediaSize) { in setMediaSize()
459 public static final class MediaSize { class in PrintAttributes
462 private static final Map<String, MediaSize> sIdToMediaSizeMap =
472 public static final MediaSize UNKNOWN_PORTRAIT =
473 new MediaSize("UNKNOWN_PORTRAIT", "android",
483 public static final MediaSize UNKNOWN_LANDSCAPE =
484 new MediaSize("UNKNOWN_LANDSCAPE", "android",
[all …]
DPrinterCapabilitiesInfo.java25 import android.print.PrintAttributes.MediaSize;
61 private @NonNull List<MediaSize> mMediaSizes;
98 mMediaSizes = new ArrayList<MediaSize>(other.mMediaSizes); in copyFrom()
129 public @NonNull List<MediaSize> getMediaSizes() { in getMediaSizes()
378 mMediaSizes = new ArrayList<MediaSize>(); in readMediaSizes()
381 mMediaSizes.add(MediaSize.createFromParcel(parcel)); in readMediaSizes()
476 public @NonNull Builder addMediaSize(@NonNull MediaSize mediaSize, boolean isDefault) { in addMediaSize()
478 mPrototype.mMediaSizes = new ArrayList<MediaSize>(); in addMediaSize()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
DMediaSizeUtils.java23 import android.print.PrintAttributes.MediaSize;
36 private static Map<MediaSize, Integer> sMediaSizeToStandardMap;
51 public static MediaSize getDefault(Context context) { in getDefault()
53 return MediaSize.getStandardMediaSizeById(mediaSizeId); in getDefault()
64 private static int getStandardForMediaSize(Context context, MediaSize mediaSize) { in getStandardForMediaSize()
75 MediaSize key = MediaSize.getStandardMediaSizeById(mediaSizeId); in getStandardForMediaSize()
89 public static final class MediaSizeComparator implements Comparator<MediaSize> {
99 private final @NonNull Map<MediaSize, String> mMediaSizeToLabel;
131 public @NonNull String getLabel(@NonNull Context context, @NonNull MediaSize mediaSize) { in getLabel()
143 public int compare(MediaSize lhs, MediaSize rhs) { in compare()
/frameworks/base/packages/PrintSpooler/tests/outofprocess/src/com/android/printspooler/outofprocess/tests/
DWorkflowTest.java66 private PrintAttributes.MediaSize mFirst;
68 private PrintAttributes.MediaSize mSecond;
70 public WorkflowTest(PrintAttributes.MediaSize first, boolean selectPrinter, in WorkflowTest()
71 PrintAttributes.MediaSize second) { in WorkflowTest()
102 String name, PrintAttributes.MediaSize mediaSize) { in addPrinter()
155 ArrayList<String> trackedPrinters, PrintAttributes.MediaSize mediaSize) { in setMockPrintServiceCallbacks()
250 for (PrintAttributes.MediaSize first : new PrintAttributes.MediaSize[]{ in getParameters()
251 PrintAttributes.MediaSize.ISO_A0, null}) { in getParameters()
253 for (PrintAttributes.MediaSize second : new PrintAttributes.MediaSize[]{ in getParameters()
254 PrintAttributes.MediaSize.ISO_A1, null}) { in getParameters()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DPageContentView.java22 import android.print.PrintAttributes.MediaSize;
41 private MediaSize mMediaSize;
80 MediaSize mediaSize, Margins minMargins) { in init()
/frameworks/base/core/java/android/print/pdf/
DPrintedPdfDocument.java26 import android.print.PrintAttributes.MediaSize;
84 MediaSize mediaSize = attributes.getMediaSize(); in PrintedPdfDocument()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintPreviewController.java24 import android.print.PrintAttributes.MediaSize;
132 PageRange[] writtenPages, PageRange[] selectedPages, MediaSize mediaSize, in onContentUpdated()
299 MediaSize mediaSize = (MediaSize) args.arg3; in handleMessage()
DPrintActivity.java53 import android.print.PrintAttributes.MediaSize;
211 private ArrayAdapter<SpinnerItem<MediaSize>> mMediaSizeSpinnerAdapter;
874 MediaSize oldMediaSize = currAttributes.getMediaSize(); in onAdvancedPrintOptionsActivityResult()
875 MediaSize newMediaSize = newAttributes.getMediaSize(); in onAdvancedPrintOptionsActivityResult()
878 MediaSize newMediaSizePortrait = newAttributes.getMediaSize().asPortrait(); in onAdvancedPrintOptionsActivityResult()
880 MediaSize supportedSizePortrait = mMediaSizeSpinnerAdapter.getItem(i) in onAdvancedPrintOptionsActivityResult()
1177 List<MediaSize> sortedMediaSizes = new ArrayList<>(capabilities.getMediaSizes()); in updatePrintAttributesFromCapabilities()
1183 MediaSize currMediaSize = attributes.getMediaSize(); in updatePrintAttributesFromCapabilities()
1188 MediaSize newMediaSize = null; in updatePrintAttributesFromCapabilities()
1193 MediaSize currMediaSizePortrait = currMediaSize.asPortrait(); in updatePrintAttributesFromCapabilities()
[all …]
DPageAdapter.java29 import android.print.PrintAttributes.MediaSize;
111 private MediaSize mMediaSize;
209 int documentPageCount, MediaSize mediaSize, Margins minMargins) { in update()
/frameworks/base/core/java/com/android/internal/print/
DDumpUtils.java154 String idName, long id, @NonNull PrintAttributes.MediaSize mediaSize) { in writeMediaSize()
213 PrintAttributes.MediaSize mediaSize = attributes.getMediaSize(); in writePrintAttributes()
/frameworks/base/core/tests/coretests/src/android/print/
DIPrintManagerParametersTest.java36 import android.print.PrintAttributes.MediaSize;
137 .addMediaSize(MediaSize.ISO_A4, true)
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPageContentRepository.java37 import android.print.PrintAttributes.MediaSize;
366 MediaSize mediaSize, Margins minMargins) { in RenderSpec()
DPrintSpoolerService.java48 import android.print.PrintAttributes.MediaSize;
1002 MediaSize mediaSize = attributes.getMediaSize(); in doWriteStateLocked()
1276 MediaSize mediaSize = new MediaSize(id, label, packageName, in parsePrintJobLocked()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt22858 method public android.print.PrintAttributes.MediaSize getMediaSize();
22871 …public android.print.PrintAttributes.Builder setMediaSize(android.print.PrintAttributes.MediaSize);
22885 public static final class PrintAttributes.MediaSize {
22886 ctor public PrintAttributes.MediaSize(java.lang.String, java.lang.String, int, int);
22887 method public android.print.PrintAttributes.MediaSize asLandscape();
22888 method public android.print.PrintAttributes.MediaSize asPortrait();
22894 field public static final android.print.PrintAttributes.MediaSize ISO_A0;
22895 field public static final android.print.PrintAttributes.MediaSize ISO_A1;
22896 field public static final android.print.PrintAttributes.MediaSize ISO_A10;
22897 field public static final android.print.PrintAttributes.MediaSize ISO_A2;
[all …]
/frameworks/base/non-updatable-api/
Dcurrent.txt36400 method @Nullable public android.print.PrintAttributes.MediaSize getMediaSize();
36417 …droid.print.PrintAttributes.Builder setMediaSize(@NonNull android.print.PrintAttributes.MediaSize);
36431 public static final class PrintAttributes.MediaSize {
36432 …ctor public PrintAttributes.MediaSize(@NonNull String, @NonNull String, @IntRange(from=1) int, @In…
36433 method @NonNull public android.print.PrintAttributes.MediaSize asLandscape();
36434 method @NonNull public android.print.PrintAttributes.MediaSize asPortrait();
36440 field public static final android.print.PrintAttributes.MediaSize ISO_A0;
36441 field public static final android.print.PrintAttributes.MediaSize ISO_A1;
36442 field public static final android.print.PrintAttributes.MediaSize ISO_A10;
36443 field public static final android.print.PrintAttributes.MediaSize ISO_A2;
[all …]
/frameworks/base/api/
Dcurrent.txt36544 method @Nullable public android.print.PrintAttributes.MediaSize getMediaSize();
36561 …droid.print.PrintAttributes.Builder setMediaSize(@NonNull android.print.PrintAttributes.MediaSize);
36575 public static final class PrintAttributes.MediaSize {
36576 …ctor public PrintAttributes.MediaSize(@NonNull String, @NonNull String, @IntRange(from=1) int, @In…
36577 method @NonNull public android.print.PrintAttributes.MediaSize asLandscape();
36578 method @NonNull public android.print.PrintAttributes.MediaSize asPortrait();
36584 field public static final android.print.PrintAttributes.MediaSize ISO_A0;
36585 field public static final android.print.PrintAttributes.MediaSize ISO_A1;
36586 field public static final android.print.PrintAttributes.MediaSize ISO_A10;
36587 field public static final android.print.PrintAttributes.MediaSize ISO_A2;
[all …]
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt54846 Landroid/print/PrintAttributes$MediaSize;-><init>(Ljava/lang/String;Ljava/lang/String;III)V
54847 Landroid/print/PrintAttributes$MediaSize;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/St…
54848 Landroid/print/PrintAttributes$MediaSize;->createFromParcel(Landroid/os/Parcel;)Landroid/print/Prin…
54849 Landroid/print/PrintAttributes$MediaSize;->getAllPredefinedSizes()Landroid/util/ArraySet;
54850 …droid/print/PrintAttributes$MediaSize;->getStandardMediaSizeById(Ljava/lang/String;)Landroid/print…
54851 Landroid/print/PrintAttributes$MediaSize;->LOG_TAG:Ljava/lang/String;
54852 Landroid/print/PrintAttributes$MediaSize;->mHeightMils:I
54853 Landroid/print/PrintAttributes$MediaSize;->mId:Ljava/lang/String;
54854 Landroid/print/PrintAttributes$MediaSize;->mLabel:Ljava/lang/String;
54855 Landroid/print/PrintAttributes$MediaSize;->mLabelResId:I
[all …]