/frameworks/base/core/java/com/android/internal/print/ |
H A D | DumpUtils.java | 151 * @param mediaSize The media size to write 154 String idName, long id, @NonNull PrintAttributes.MediaSize mediaSize) { 156 proto.write("id", MediaSizeProto.ID, mediaSize.getId()); 157 proto.write("label", MediaSizeProto.LABEL, mediaSize.getLabel(context.getPackageManager())); 158 proto.write("height_mils", MediaSizeProto.HEIGHT_MILS, mediaSize.getHeightMils()); 159 proto.write("width_mils", MediaSizeProto.WIDTH_MILS, mediaSize.getWidthMils()); 213 PrintAttributes.MediaSize mediaSize = attributes.getMediaSize(); 214 if (mediaSize != null) { 215 writeMediaSize(context, proto, "media_size", PrintAttributesProto.MEDIA_SIZE, mediaSize); 153 writeMediaSize(@onNull Context context, @NonNull DualDumpOutputStream proto, String idName, long id, @NonNull PrintAttributes.MediaSize mediaSize) argument
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/ |
H A D | MediaSizeUtils.java | 60 * @param mediaSize The {@link MediaSize} to be resolved 64 private static int getStandardForMediaSize(Context context, MediaSize mediaSize) { argument 80 Integer standard = sMediaSizeToStandardMap.get(mediaSize); 127 * @param mediaSize The {@link MediaSize} to resolve 131 public @NonNull String getLabel(@NonNull Context context, @NonNull MediaSize mediaSize) { argument 132 String label = mMediaSizeToLabel.get(mediaSize); 135 label = mediaSize.getLabel(context.getPackageManager()); 136 mMediaSizeToLabel.put(mediaSize, label);
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/ |
H A D | PageContentView.java | 80 MediaSize mediaSize, Margins minMargins) { 86 ? mediaSize != null : !mMediaSize.equals(mediaSize); 97 mMediaSize = mediaSize; 79 init(PageContentProvider provider, Drawable emptyState, Drawable errorState, MediaSize mediaSize, Margins minMargins) argument
|
/frameworks/base/packages/PrintSpooler/tests/outofprocess/src/com/android/printspooler/outofprocess/tests/ |
H A D | WorkflowTest.java | 101 String name, PrintAttributes.MediaSize mediaSize) { 109 if (mediaSize != null) { 113 .addMediaSize(mediaSize, true) 154 ArrayList<String> trackedPrinters, PrintAttributes.MediaSize mediaSize) { 161 addPrinter(sessionRef[0], "1st printer", mediaSize); 100 addPrinter(StubbablePrinterDiscoverySession session, String name, PrintAttributes.MediaSize mediaSize) argument 153 setMockPrintServiceCallbacks(StubbablePrinterDiscoverySession[] sessionRef, ArrayList<String> trackedPrinters, PrintAttributes.MediaSize mediaSize) argument
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/ |
H A D | StorageMeasurement.java | 75 public SparseArray<HashMap<String, Long>> mediaSize = new SparseArray<>(); field in class:StorageMeasurement.MeasurementDetails 87 + " cacheSize: " + cacheSize + " mediaSize: " + mediaSize 176 details.mediaSize.put(user.id, mediaMap);
|
/frameworks/base/core/java/android/print/ |
H A D | PrinterCapabilitiesInfo.java | 468 * @param mediaSize A media size. 476 public @NonNull Builder addMediaSize(@NonNull MediaSize mediaSize, boolean isDefault) { argument 481 mPrototype.mMediaSizes.add(mediaSize);
|
H A D | PrintAttributes.java | 122 * @param mediaSize The media size. 126 public void setMediaSize(MediaSize mediaSize) { argument 127 mMediaSize = mediaSize; 418 builder.append("mediaSize: ").append(mMediaSize); 1398 * @param mediaSize The media size. 1401 public @NonNull Builder setMediaSize(@NonNull MediaSize mediaSize) { argument 1402 mAttributes.setMediaSize(mediaSize);
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
H A D | PrintPreviewController.java | 132 PageRange[] writtenPages, PageRange[] selectedPages, MediaSize mediaSize, 164 args.arg3 = mediaSize; 299 MediaSize mediaSize = (MediaSize) args.arg3; 305 mediaSize, margins); 131 onContentUpdated(boolean documentChanged, int documentPageCount, PageRange[] writtenPages, PageRange[] selectedPages, MediaSize mediaSize, Margins minMargins) argument
|
H A D | PageAdapter.java | 209 int documentPageCount, MediaSize mediaSize, Margins minMargins) { 238 if (mMediaSize == null || !mMediaSize.equals(mediaSize)) { 239 mMediaSize = mediaSize; 208 update(PageRange[] writtenPages, PageRange[] selectedPages, int documentPageCount, MediaSize mediaSize, Margins minMargins) argument
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
H A D | PageContentRepository.java | 366 MediaSize mediaSize, Margins minMargins) { 369 printAttributes.setMediaSize(mediaSize); 365 RenderSpec(int bitmapWidth, int bitmapHeight, MediaSize mediaSize, Margins minMargins) argument
|