Searched refs:mediaSize (Results 1 – 4 of 4) sorted by relevance
/cts/tests/tests/print/src/android/print/cts/ |
D | CustomPrintOptionsTest.java | 128 final PageRange[] pages, final MediaSize mediaSize, final boolean isPortrait, in testCase() argument 216 if (mediaSize != null) { in testCase() 218 additionalAttributesBuilder.setMediaSize(mediaSize.asPortrait()); in testCase() 219 newAttributesBuilder.setMediaSize(mediaSize.asPortrait()); in testCase() 221 additionalAttributesBuilder.setMediaSize(mediaSize.asLandscape()); in testCase() 222 newAttributesBuilder.setMediaSize(mediaSize.asLandscape()); in testCase() 267 if (mediaSize != null || colorMode != null || duplexMode != null in testCase()
|
D | PrinterCapabilitiesTest.java | 72 private List<PrinterInfo> generatePrinters(PrinterId printerId, MediaSize mediaSize, in generatePrinters() argument 78 if (mediaSize != null) { in generatePrinters() 86 .addMediaSize(mediaSize, true) in generatePrinters() 108 private void waitForMediaSizeChange(PrintAttributes[] printAttributes, MediaSize mediaSize) in waitForMediaSizeChange() argument 113 !printAttributes[0].getMediaSize().equals(mediaSize)) { in waitForMediaSizeChange() 118 "Print attributes did not change to " + mediaSize + " in " + in waitForMediaSizeChange() 135 final PrinterId printerId, final MediaSize mediaSize, final boolean isAvailable) { in changeCapabilities() argument 139 session.addPrinters(generatePrinters(printerId, mediaSize, isAvailable ? in changeCapabilities()
|
D | PrintAttributesTest.java | 94 private PrintAttributes createAttributes(MediaSize mediaSize, int colorMode, int duplexMode, in createAttributes() argument 96 if (mediaSize == null && colorMode == 0 && duplexMode == 0 && resolution == null) { in createAttributes() 102 if (mediaSize != null) { in createAttributes() 103 builder.setMediaSize(mediaSize); in createAttributes()
|
D | BasePrintTest.java | 477 protected void changeMediaSize(String mediaSize) throws UiObjectNotFoundException, IOException { in changeMediaSize() argument 482 UiObject mediaSizeOption = mUiDevice.findObject(new UiSelector().text(mediaSize)); in changeMediaSize()
|