Home
last modified time | relevance | path

Searched refs:mediaSize (Results 1 – 14 of 14) 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/base/core/java/com/android/internal/print/
DDumpUtils.java154 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/
DWorkflowTest.java107 String name, PrintAttributes.MediaSize mediaSize) { in addPrinter() argument
115 if (mediaSize != null) { in addPrinter()
119 .addMediaSize(mediaSize, true) in addPrinter()
160 ArrayList<String> trackedPrinters, PrintAttributes.MediaSize mediaSize) { in setMockPrintServiceCallbacks() argument
167 addPrinter(sessionRef[0], "1st printer", mediaSize); in setMockPrintServiceCallbacks()
/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.java1196 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 …]
DPageAdapter.java209 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/
DStorageMeasurement.java75 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/
DPrintSpoolerService.java1002 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 …]
DPageContentRepository.java366 MediaSize mediaSize, Margins minMargins) { in RenderSpec() argument
369 printAttributes.setMediaSize(mediaSize); in RenderSpec()
/frameworks/base/core/java/android/print/
DPrintAttributes.java126 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()
DPrinterCapabilitiesInfo.java476 public @NonNull Builder addMediaSize(@NonNull MediaSize mediaSize, boolean isDefault) { in addMediaSize() argument
481 mPrototype.mMediaSizes.add(mediaSize); in addMediaSize()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...