/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/ |
D | MediaSizeUtils.java | 64 private static int getStandardForMediaSize(Context context, MediaSize mediaSize) { in getStandardForMediaSize() argument 80 Integer standard = sMediaSizeToStandardMap.get(mediaSize); in getStandardForMediaSize() 131 public @NonNull String getLabel(@NonNull Context context, @NonNull MediaSize mediaSize) { in getLabel() argument 132 String label = mMediaSizeToLabel.get(mediaSize); in getLabel() 135 label = mediaSize.getLabel(context.getPackageManager()); in getLabel() 136 mMediaSizeToLabel.put(mediaSize, label); in getLabel()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/ |
D | PageContentView.java | 80 MediaSize mediaSize, Margins minMargins) { in init() argument 86 ? mediaSize != null : !mMediaSize.equals(mediaSize); in init() 97 mMediaSize = mediaSize; in init()
|
/frameworks/base/core/java/android/print/pdf/ |
D | PrintedPdfDocument.java | 84 MediaSize mediaSize = attributes.getMediaSize(); in PrintedPdfDocument() local 87 mPageWidth = (int) (((float) mediaSize.getWidthMils() / MILS_PER_INCH) in PrintedPdfDocument() 89 mPageHeight = (int) (((float) mediaSize.getHeightMils() / MILS_PER_INCH) in PrintedPdfDocument()
|
/frameworks/base/core/java/com/android/internal/print/ |
D | DumpUtils.java | 154 String idName, long id, @NonNull PrintAttributes.MediaSize mediaSize) { in writeMediaSize() argument 156 proto.write("id", MediaSizeProto.ID, mediaSize.getId()); in writeMediaSize() 157 proto.write("label", MediaSizeProto.LABEL, mediaSize.getLabel(context.getPackageManager())); in writeMediaSize() 158 proto.write("height_mils", MediaSizeProto.HEIGHT_MILS, mediaSize.getHeightMils()); in writeMediaSize() 159 proto.write("width_mils", MediaSizeProto.WIDTH_MILS, mediaSize.getWidthMils()); in writeMediaSize() 213 PrintAttributes.MediaSize mediaSize = attributes.getMediaSize(); in writePrintAttributes() local 214 if (mediaSize != null) { in writePrintAttributes() 215 … writeMediaSize(context, proto, "media_size", PrintAttributesProto.MEDIA_SIZE, mediaSize); in writePrintAttributes()
|
/frameworks/base/packages/PrintSpooler/tests/outofprocess/src/com/android/printspooler/outofprocess/tests/ |
D | WorkflowTest.java | 102 String name, PrintAttributes.MediaSize mediaSize) { in addPrinter() argument 110 if (mediaSize != null) { in addPrinter() 114 .addMediaSize(mediaSize, true) in addPrinter() 155 ArrayList<String> trackedPrinters, PrintAttributes.MediaSize mediaSize) { in setMockPrintServiceCallbacks() argument 162 addPrinter(sessionRef[0], "1st printer", mediaSize); in setMockPrintServiceCallbacks()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
D | PrintPreviewController.java | 132 PageRange[] writtenPages, PageRange[] selectedPages, MediaSize mediaSize, in onContentUpdated() argument 164 args.arg3 = mediaSize; in onContentUpdated() 299 MediaSize mediaSize = (MediaSize) args.arg3; in handleMessage() local 305 mediaSize, margins); in handleMessage()
|
D | PrintActivity.java | 1196 MediaSize mediaSize = sortedMediaSizes.get(i); in updatePrintAttributesFromCapabilities() local 1197 if (currMediaSizePortrait.equals(mediaSize.asPortrait())) { in updatePrintAttributesFromCapabilities() 1198 newMediaSize = mediaSize; in updatePrintAttributesFromCapabilities() 1714 MediaSize mediaSize = mediaSizes.get(i); in updateOptionsUi() local 1716 && mediaSize.asPortrait().equals(oldMediaSize.asPortrait())) { in updateOptionsUi() 1721 mediaSize, mediaSize.getLabel(getPackageManager()))); in updateOptionsUi() 1884 MediaSize mediaSize = attributes.getMediaSize(); in updateOptionsUi() local 1885 if (mediaSize != null) { in updateOptionsUi() 1886 if (mediaSize.isPortrait() in updateOptionsUi() 1889 } else if (!mediaSize.isPortrait() in updateOptionsUi() [all …]
|
D | PageAdapter.java | 209 int documentPageCount, MediaSize mediaSize, Margins minMargins) { in update() argument 238 if (mMediaSize == null || !mMediaSize.equals(mediaSize)) { in update() 239 mMediaSize = mediaSize; in update()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/ |
D | StorageMeasurement.java | 75 public SparseArray<HashMap<String, Long>> mediaSize = new SparseArray<>(); field in StorageMeasurement.MeasurementDetails 87 + " cacheSize: " + cacheSize + " mediaSize: " + mediaSize in toString() 177 details.mediaSize.put(user.id, mediaMap); in measureExactStorage()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
D | PrintSpoolerService.java | 1002 MediaSize mediaSize = attributes.getMediaSize(); in doWriteStateLocked() local 1003 if (mediaSize != null) { in doWriteStateLocked() 1005 serializer.attribute(null, ATTR_ID, mediaSize.getId()); in doWriteStateLocked() 1007 mediaSize.getWidthMils())); in doWriteStateLocked() 1009 mediaSize.getHeightMils())); in doWriteStateLocked() 1012 if (!TextUtils.isEmpty(mediaSize.mPackageName) in doWriteStateLocked() 1013 && mediaSize.mLabelResId > 0) { in doWriteStateLocked() 1015 mediaSize.mPackageName); in doWriteStateLocked() 1017 String.valueOf(mediaSize.mLabelResId)); in doWriteStateLocked() 1020 mediaSize.getLabel(getPackageManager())); in doWriteStateLocked() [all …]
|
D | PageContentRepository.java | 366 MediaSize mediaSize, Margins minMargins) { in RenderSpec() argument 369 printAttributes.setMediaSize(mediaSize); in RenderSpec()
|
/frameworks/base/core/java/android/print/ |
D | PrintAttributes.java | 126 public void setMediaSize(MediaSize mediaSize) { in setMediaSize() argument 127 mMediaSize = mediaSize; in setMediaSize() 1401 public @NonNull Builder setMediaSize(@NonNull MediaSize mediaSize) { in setMediaSize() argument 1402 mAttributes.setMediaSize(mediaSize); in setMediaSize()
|
D | PrinterCapabilitiesInfo.java | 476 public @NonNull Builder addMediaSize(@NonNull MediaSize mediaSize, boolean isDefault) { in addMediaSize() argument 481 mPrototype.mMediaSizes.add(mediaSize); in addMediaSize()
|