Home
last modified time | relevance | path

Searched refs:mediaSize (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
DMediaSizeUtils.java64 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/
DPageContentView.java80 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/
DPrintedPdfDocument.java84 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/support/v4/kitkat/android/support/v4/print/
DPrintHelperKitkat.java233 PrintAttributes.MediaSize mediaSize; in printBitmap() local
235 mediaSize = PrintAttributes.MediaSize.UNKNOWN_PORTRAIT; in printBitmap()
237 mediaSize = PrintAttributes.MediaSize.UNKNOWN_LANDSCAPE; in printBitmap()
240 .setMediaSize(mediaSize) in printBitmap()
480 MediaSize mediaSize; in printBitmap()
483 mediaSize = mAttributes.getMediaSize(); in printBitmap()
486 if (mediaSize != null) { in printBitmap()
487 if (mediaSize.isPortrait() != isPortrait(bitmap)) { in printBitmap()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintPreviewController.java132 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()
DPrintActivity.java1095 MediaSize mediaSize = sortedMediaSizes.get(i); in updatePrintAttributesFromCapabilities() local
1096 if (currMediaSizePortrait.equals(mediaSize.asPortrait())) { in updatePrintAttributesFromCapabilities()
1097 newMediaSize = mediaSize; in updatePrintAttributesFromCapabilities()
1617 MediaSize mediaSize = mediaSizes.get(i); in updateOptionsUi() local
1619 && mediaSize.asPortrait().equals(oldMediaSize.asPortrait())) { in updateOptionsUi()
1624 mediaSize, mediaSize.getLabel(getPackageManager()))); in updateOptionsUi()
1787 MediaSize mediaSize = attributes.getMediaSize(); in updateOptionsUi() local
1788 if (mediaSize != null) { in updateOptionsUi()
1789 if (mediaSize.isPortrait() in updateOptionsUi()
1792 } else if (!mediaSize.isPortrait() in updateOptionsUi()
[all …]
DPageAdapter.java206 int documentPageCount, MediaSize mediaSize, Margins minMargins) { in update() argument
235 if (mMediaSize == null || !mMediaSize.equals(mediaSize)) { in update()
236 mMediaSize = mediaSize; in update()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPrintSpoolerService.java957 MediaSize mediaSize = attributes.getMediaSize(); in doWriteStateLocked() local
958 if (mediaSize != null) { in doWriteStateLocked()
960 serializer.attribute(null, ATTR_ID, mediaSize.getId()); in doWriteStateLocked()
962 mediaSize.getWidthMils())); in doWriteStateLocked()
964 mediaSize.getHeightMils())); in doWriteStateLocked()
967 if (!TextUtils.isEmpty(mediaSize.mPackageName) in doWriteStateLocked()
968 && mediaSize.mLabelResId > 0) { in doWriteStateLocked()
970 mediaSize.mPackageName); in doWriteStateLocked()
972 String.valueOf(mediaSize.mLabelResId)); in doWriteStateLocked()
975 mediaSize.getLabel(getPackageManager())); in doWriteStateLocked()
[all …]
DPageContentRepository.java343 MediaSize mediaSize, Margins minMargins) { in RenderSpec() argument
346 printAttributes.setMediaSize(mediaSize); in RenderSpec()
/frameworks/base/core/java/android/print/
DPrintAttributes.java122 public void setMediaSize(MediaSize mediaSize) { in setMediaSize() argument
123 mMediaSize = mediaSize; in setMediaSize()
1397 public @NonNull Builder setMediaSize(@NonNull MediaSize mediaSize) { in setMediaSize() argument
1398 mAttributes.setMediaSize(mediaSize); in setMediaSize()
DPrinterCapabilitiesInfo.java476 public @NonNull Builder addMediaSize(@NonNull MediaSize mediaSize, boolean isDefault) { in addMediaSize() argument
481 mPrototype.mMediaSizes.add(mediaSize); in addMediaSize()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DStorageMeasurement.java116 public SparseArray<HashMap<String, Long>> mediaSize = new SparseArray<>(); field in StorageMeasurement.MeasurementDetails
371 details.mediaSize.put(userId, mediaMap); in measureExactStorage()