/frameworks/base/packages/PrintSpooler/tests/outofprocess/src/com/android/printspooler/outofprocess/tests/ |
D | WorkflowTest.java | 26 import android.print.PrintAttributes; 67 private PrintAttributes.MediaSize mFirst; 69 private PrintAttributes.MediaSize mSecond; 71 public WorkflowTest(PrintAttributes.MediaSize first, boolean selectPrinter, in WorkflowTest() 72 PrintAttributes.MediaSize second) { in WorkflowTest() 107 String name, PrintAttributes.MediaSize mediaSize) { in addPrinter() 116 builder.setMinMargins(new PrintAttributes.Margins(0, 0, 0, 0)) in addPrinter() 117 .setColorModes(PrintAttributes.COLOR_MODE_COLOR, in addPrinter() 118 PrintAttributes.COLOR_MODE_COLOR) in addPrinter() 120 .addResolution(new PrintAttributes.Resolution("300x300", "300x300", 300, 300), in addPrinter() [all …]
|
/frameworks/base/core/java/android/print/ |
D | PrinterCapabilitiesInfo.java | 23 import android.print.PrintAttributes.ColorMode; 24 import android.print.PrintAttributes.DuplexMode; 25 import android.print.PrintAttributes.Margins; 26 import android.print.PrintAttributes.MediaSize; 27 import android.print.PrintAttributes.Resolution; 184 public @NonNull PrintAttributes getDefaults() { in getDefaults() 185 PrintAttributes.Builder builder = new PrintAttributes.Builder(); in getDefaults() 234 (currentMode) -> PrintAttributes.enforceValidColorMode(currentMode)); in PrinterCapabilitiesInfo() 238 (currentMode) -> PrintAttributes.enforceValidDuplexMode(currentMode)); in PrinterCapabilitiesInfo() 343 builder.append(PrintAttributes.colorModeToString(colorMode)); in colorModesToString() [all …]
|
D | IPrintDocumentAdapter.aidl | 25 import android.print.PrintAttributes; 35 void layout(in PrintAttributes oldAttributes, in PrintAttributes newAttributes, in layout()
|
D | PrintAttributes.java | 49 public final class PrintAttributes implements Parcelable { class 92 PrintAttributes() { in PrintAttributes() method in PrintAttributes 96 private PrintAttributes(@NonNull Parcel parcel) { in PrintAttributes() method in PrintAttributes 265 public PrintAttributes asPortrait() { in asPortrait() 270 PrintAttributes attributes = new PrintAttributes(); in asPortrait() 303 public PrintAttributes asLandscape() { in asLandscape() 308 PrintAttributes attributes = new PrintAttributes(); in asLandscape() 383 PrintAttributes other = (PrintAttributes) obj; in equals() 445 public void copyFrom(PrintAttributes other) { in copyFrom() 1441 private final PrintAttributes mAttributes = new PrintAttributes(); [all …]
|
D | PrintDocumentAdapter.java | 187 public abstract void onLayout(PrintAttributes oldAttributes, PrintAttributes newAttributes, in onLayout()
|
D | IPrintManager.aidl | 30 import android.print.PrintAttributes; 43 in PrintAttributes attributes, String packageName, int appId, int userId); in print()
|
D | PrintAttributes.aidl | 19 parcelable PrintAttributes;
|
D | PrintJobInfo.java | 185 private PrintAttributes mAttributes; 250 mAttributes = (PrintAttributes) parcel.readParcelable(null); in PrintJobInfo() 531 public @NonNull PrintAttributes getAttributes() { in getAttributes() 542 public void setAttributes(PrintAttributes attributes) { in setAttributes() 811 public void setAttributes(@NonNull PrintAttributes attributes) { in setAttributes()
|
D | PrintFileDocumentAdapter.java | 82 public void onLayout(PrintAttributes oldAttributes, PrintAttributes newAttributes, in onLayout()
|
D | PrintManager.java | 512 @Nullable PrintAttributes attributes) { in print() 847 public void layout(PrintAttributes oldAttributes, PrintAttributes newAttributes, in layout() 1041 PrintAttributes oldAttributes = (PrintAttributes) args.arg2; in handleMessage() 1042 PrintAttributes newAttributes = (PrintAttributes) args.arg3; in handleMessage()
|
D | IPrintSpooler.aidl | 26 import android.print.PrintAttributes;
|
/frameworks/base/core/java/com/android/internal/print/ |
D | DumpUtils.java | 24 import android.print.PrintAttributes; 92 if ((cap.getColorModes() & PrintAttributes.COLOR_MODE_MONOCHROME) != 0) { in writePrinterCapabilities() 96 if ((cap.getColorModes() & PrintAttributes.COLOR_MODE_COLOR) != 0) { in writePrinterCapabilities() 101 if ((cap.getDuplexModes() & PrintAttributes.DUPLEX_MODE_NONE) != 0) { in writePrinterCapabilities() 105 if ((cap.getDuplexModes() & PrintAttributes.DUPLEX_MODE_LONG_EDGE) != 0) { in writePrinterCapabilities() 109 if ((cap.getDuplexModes() & PrintAttributes.DUPLEX_MODE_SHORT_EDGE) != 0) { in writePrinterCapabilities() 154 String idName, long id, @NonNull PrintAttributes.MediaSize mediaSize) { in writeMediaSize() 172 @NonNull PrintAttributes.Resolution res) { in writeResolution() 190 @NonNull PrintAttributes.Margins margins) { in writeMargins() 210 @NonNull PrintAttributes attributes) { in writePrintAttributes() [all …]
|
/frameworks/base/core/java/android/print/pdf/ |
D | PrintedPdfDocument.java | 24 import android.print.PrintAttributes; 25 import android.print.PrintAttributes.Margins; 26 import android.print.PrintAttributes.MediaSize; 83 public PrintedPdfDocument(@NonNull Context context, @NonNull PrintAttributes attributes) { in PrintedPdfDocument()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/ |
D | IPdfEditor.aidl | 21 import android.print.PrintAttributes; 29 void applyPrintAttributes(in PrintAttributes attributes); in applyPrintAttributes()
|
D | IPdfRenderer.aidl | 22 import android.print.PrintAttributes; 30 in PrintAttributes attributes, in ParcelFileDescriptor destination); in renderPage()
|
D | PdfManipulationService.java | 32 import android.print.PrintAttributes; 33 import android.print.PrintAttributes.Margins; 106 PrintAttributes attributes, ParcelFileDescriptor destination) { in renderPage() 269 public void applyPrintAttributes(PrintAttributes attributes) { in applyPrintAttributes()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
D | RemotePrintDocument.java | 36 import android.print.PrintAttributes; 207 public boolean update(PrintAttributes attributes, PageRange[] pages, boolean preview) { in update() 240 PrintAttributes oldAttributes = mDocumentInfo.attributes != null in update() 241 ? mDocumentInfo.attributes : new PrintAttributes.Builder().build(); in update() 513 final PrintAttributes attributes = new PrintAttributes.Builder().build(); 517 public void update(PrintAttributes attributes, boolean preview, in update() 530 public boolean hasSameConstraints(PrintAttributes attributes, boolean preview) { in hasSameConstraints() 536 public PrintAttributes attributes; 731 private final PrintAttributes mOldAttributes = new PrintAttributes.Builder().build(); 732 private final PrintAttributes mNewAttributes = new PrintAttributes.Builder().build(); [all …]
|
D | PageContentRepository.java | 35 import android.print.PrintAttributes; 36 import android.print.PrintAttributes.Margins; 37 import android.print.PrintAttributes.MediaSize; 363 final PrintAttributes printAttributes = new PrintAttributes.Builder().build();
|
D | PrintSpoolerService.java | 46 import android.print.PrintAttributes; 47 import android.print.PrintAttributes.Margins; 48 import android.print.PrintAttributes.MediaSize; 49 import android.print.PrintAttributes.Resolution; 990 PrintAttributes attributes = printJob.getAttributes(); in doWriteStateLocked() 1250 PrintAttributes.Builder builder = new PrintAttributes.Builder(); in parsePrintJobLocked()
|
/frameworks/base/core/tests/coretests/src/android/print/ |
D | IPrintManagerParametersTest.java | 35 import android.print.PrintAttributes.Margins; 36 import android.print.PrintAttributes.MediaSize; 37 import android.print.PrintAttributes.Resolution; 104 public void onLayout(PrintAttributes oldAttributes, PrintAttributes newAttributes, in createMockAdapter() 147 PrintAttributes.COLOR_MODE_COLOR, 148 PrintAttributes.COLOR_MODE_COLOR) 212 mGoodPrintJob = print(createMockAdapter(), (PrintAttributes) null);
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/ |
D | PageContentView.java | 22 import android.print.PrintAttributes.MediaSize; 23 import android.print.PrintAttributes.Margins;
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
D | PrintActivity.java | 52 import android.print.PrintAttributes; 53 import android.print.PrintAttributes.MediaSize; 54 import android.print.PrintAttributes.Resolution; 290 mPrintJob.setAttributes(new PrintAttributes.Builder().build()); in onCreate() 868 PrintAttributes currAttributes = mPrintJob.getAttributes(); in onAdvancedPrintOptionsActivityResult() 869 PrintAttributes newAttributes = printJobInfo.getAttributes(); in onAdvancedPrintOptionsActivityResult() 1173 PrintAttributes defaults = capabilities.getDefaults(); in updatePrintAttributesFromCapabilities() 1179 PrintAttributes attributes = mPrintJob.getAttributes(); in updatePrintAttributesFromCapabilities() 1678 PrintAttributes defaultAttributes = capabilities.getDefaults(); in updateOptionsUi() 1690 PrintAttributes attributes = mPrintJob.getAttributes(); in updateOptionsUi() [all …]
|
D | PrintPreviewController.java | 24 import android.print.PrintAttributes.MediaSize; 25 import android.print.PrintAttributes.Margins;
|
D | PageAdapter.java | 28 import android.print.PrintAttributes.Margins; 29 import android.print.PrintAttributes.MediaSize;
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/ |
D | MediaSizeUtils.java | 23 import android.print.PrintAttributes.MediaSize;
|