Home
last modified time | relevance | path

Searched refs:PrintAttributes (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/support/core-utils/java/android/support/v4/print/
DPrintHelper.java36 import android.print.PrintAttributes;
69 public static final int COLOR_MODE_MONOCHROME = PrintAttributes.COLOR_MODE_MONOCHROME;
74 public static final int COLOR_MODE_COLOR = PrintAttributes.COLOR_MODE_COLOR;
327 protected PrintAttributes.Builder copyAttributes(PrintAttributes other) { in copyAttributes()
328 PrintAttributes.Builder b = (new PrintAttributes.Builder()) in copyAttributes()
357 PrintAttributes.MediaSize mediaSize; in printBitmap()
359 mediaSize = PrintAttributes.MediaSize.UNKNOWN_PORTRAIT; in printBitmap()
361 mediaSize = PrintAttributes.MediaSize.UNKNOWN_LANDSCAPE; in printBitmap()
363 PrintAttributes attr = new PrintAttributes.Builder() in printBitmap()
370 private PrintAttributes mAttributes; in printBitmap()
[all …]
/frameworks/base/packages/PrintSpooler/tests/outofprocess/src/com/android/printspooler/outofprocess/tests/
DWorkflowTest.java24 import android.print.PrintAttributes;
70 private PrintAttributes.MediaSize mFirst;
72 private PrintAttributes.MediaSize mSecond;
74 public WorkflowTest(PrintAttributes.MediaSize first, boolean selectPrinter, in WorkflowTest()
75 PrintAttributes.MediaSize second) { in WorkflowTest()
174 String name, PrintAttributes.MediaSize mediaSize) { in addPrinter()
183 builder.setMinMargins(new PrintAttributes.Margins(0, 0, 0, 0)) in addPrinter()
184 .setColorModes(PrintAttributes.COLOR_MODE_COLOR, in addPrinter()
185 PrintAttributes.COLOR_MODE_COLOR) in addPrinter()
187 .addResolution(new PrintAttributes.Resolution("300x300", "300x300", 300, 300), in addPrinter()
[all …]
DBasePrintTest.java25 import android.print.PrintAttributes;
110 final PrintAttributes attributes) { in print()
/frameworks/base/core/java/android/print/
DPrinterCapabilitiesInfo.java22 import android.print.PrintAttributes.ColorMode;
23 import android.print.PrintAttributes.DuplexMode;
24 import android.print.PrintAttributes.Margins;
25 import android.print.PrintAttributes.MediaSize;
26 import android.print.PrintAttributes.Resolution;
182 public @NonNull PrintAttributes getDefaults() { in getDefaults()
183 PrintAttributes.Builder builder = new PrintAttributes.Builder(); in getDefaults()
232 (currentMode) -> PrintAttributes.enforceValidColorMode(currentMode)); in PrinterCapabilitiesInfo()
236 (currentMode) -> PrintAttributes.enforceValidDuplexMode(currentMode)); in PrinterCapabilitiesInfo()
341 builder.append(PrintAttributes.colorModeToString(colorMode)); in colorModesToString()
[all …]
DIPrintDocumentAdapter.aidl25 import android.print.PrintAttributes;
35 void layout(in PrintAttributes oldAttributes, in PrintAttributes newAttributes, in layout()
DPrintAttributes.java48 public final class PrintAttributes implements Parcelable { class
88 PrintAttributes() { in PrintAttributes() method in PrintAttributes
92 private PrintAttributes(@NonNull Parcel parcel) { in PrintAttributes() method in PrintAttributes
261 public PrintAttributes asPortrait() { in asPortrait()
266 PrintAttributes attributes = new PrintAttributes(); in asPortrait()
299 public PrintAttributes asLandscape() { in asLandscape()
304 PrintAttributes attributes = new PrintAttributes(); in asLandscape()
379 PrintAttributes other = (PrintAttributes) obj; in equals()
441 public void copyFrom(PrintAttributes other) { in copyFrom()
1389 private final PrintAttributes mAttributes = new PrintAttributes();
[all …]
DPrintDocumentAdapter.java186 public abstract void onLayout(PrintAttributes oldAttributes, PrintAttributes newAttributes, in onLayout()
DIPrintManager.aidl30 import android.print.PrintAttributes;
43 in PrintAttributes attributes, String packageName, int appId, int userId); in print()
DPrintJobInfo.java178 private PrintAttributes mAttributes;
243 mAttributes = (PrintAttributes) parcel.readParcelable(null); in PrintJobInfo()
524 public @NonNull PrintAttributes getAttributes() { in getAttributes()
535 public void setAttributes(PrintAttributes attributes) { in setAttributes()
793 public void setAttributes(@NonNull PrintAttributes attributes) { in setAttributes()
DPrintFileDocumentAdapter.java80 public void onLayout(PrintAttributes oldAttributes, PrintAttributes newAttributes, in onLayout()
DPrintAttributes.aidl19 parcelable PrintAttributes;
DPrintManager.java507 @Nullable PrintAttributes attributes) { in print()
842 public void layout(PrintAttributes oldAttributes, PrintAttributes newAttributes, in layout()
1036 PrintAttributes oldAttributes = (PrintAttributes) args.arg2; in handleMessage()
1037 PrintAttributes newAttributes = (PrintAttributes) args.arg3; in handleMessage()
DIPrintSpooler.aidl26 import android.print.PrintAttributes;
/frameworks/base/core/java/android/print/pdf/
DPrintedPdfDocument.java24 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/
DIPdfEditor.aidl21 import android.print.PrintAttributes;
29 void applyPrintAttributes(in PrintAttributes attributes); in applyPrintAttributes()
DIPdfRenderer.aidl22 import android.print.PrintAttributes;
30 in PrintAttributes attributes, in ParcelFileDescriptor destination); in renderPage()
DPdfManipulationService.java32 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/
DRemotePrintDocument.java37 import android.print.PrintAttributes;
201 public boolean update(PrintAttributes attributes, PageRange[] pages, boolean preview) { in update()
228 PrintAttributes oldAttributes = mDocumentInfo.attributes != null in update()
229 ? mDocumentInfo.attributes : new PrintAttributes.Builder().build(); in update()
496 final PrintAttributes attributes = new PrintAttributes.Builder().build();
500 public void update(PrintAttributes attributes, boolean preview, in update()
513 public boolean hasSameConstraints(PrintAttributes attributes, boolean preview) { in hasSameConstraints()
519 public PrintAttributes attributes;
729 private final PrintAttributes mOldAttributes = new PrintAttributes.Builder().build();
730 private final PrintAttributes mNewAttributes = new PrintAttributes.Builder().build();
[all …]
DPageContentRepository.java35 import android.print.PrintAttributes;
36 import android.print.PrintAttributes.Margins;
37 import android.print.PrintAttributes.MediaSize;
363 final PrintAttributes printAttributes = new PrintAttributes.Builder().build();
DPrintSpoolerService.java38 import android.print.PrintAttributes;
39 import android.print.PrintAttributes.Margins;
40 import android.print.PrintAttributes.MediaSize;
41 import android.print.PrintAttributes.Resolution;
947 PrintAttributes attributes = printJob.getAttributes(); in doWriteStateLocked()
1207 PrintAttributes.Builder builder = new PrintAttributes.Builder(); in parsePrintJob()
/frameworks/base/core/tests/coretests/src/android/print/
DIPrintManagerParametersTest.java30 import android.print.PrintAttributes.Margins;
31 import android.print.PrintAttributes.MediaSize;
32 import android.print.PrintAttributes.Resolution;
97 public void onLayout(PrintAttributes oldAttributes, PrintAttributes newAttributes, in createMockAdapter()
140 PrintAttributes.COLOR_MODE_COLOR,
141 PrintAttributes.COLOR_MODE_COLOR)
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DPageContentView.java22 import android.print.PrintAttributes.MediaSize;
23 import android.print.PrintAttributes.Margins;
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintActivity.java52 import android.print.PrintAttributes;
53 import android.print.PrintAttributes.MediaSize;
54 import android.print.PrintAttributes.Resolution;
277 mPrintJob.setAttributes(new PrintAttributes.Builder().build()); in onCreate()
832 PrintAttributes currAttributes = mPrintJob.getAttributes(); in onAdvancedPrintOptionsActivityResult()
833 PrintAttributes newAttributes = printJobInfo.getAttributes(); in onAdvancedPrintOptionsActivityResult()
1137 PrintAttributes defaults = capabilities.getDefaults(); in updatePrintAttributesFromCapabilities()
1143 PrintAttributes attributes = mPrintJob.getAttributes(); in updatePrintAttributesFromCapabilities()
1642 PrintAttributes defaultAttributes = capabilities.getDefaults(); in updateOptionsUi()
1654 PrintAttributes attributes = mPrintJob.getAttributes(); in updateOptionsUi()
[all …]
DPrintPreviewController.java24 import android.print.PrintAttributes.MediaSize;
25 import android.print.PrintAttributes.Margins;
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
DMediaSizeUtils.java23 import android.print.PrintAttributes.MediaSize;

12