Searched refs:mediaSize (Results 1 – 4 of 4) sorted by relevance
/cts/tests/tests/print/src/android/print/cts/ |
D | PrinterCapabilitiesChangeTest.java | 86 private List<PrinterInfo> generatePrinters(PrinterId printerId, MediaSize mediaSize, in generatePrinters() argument 92 if (mediaSize != null) { in generatePrinters() 100 .addMediaSize(mediaSize, true) in generatePrinters() 122 private void waitForMediaSizeChange(PrintAttributes[] printAttributes, MediaSize mediaSize) in waitForMediaSizeChange() argument 127 !printAttributes[0].getMediaSize().equals(mediaSize)) { in waitForMediaSizeChange() 132 "Print attributes did not change to " + mediaSize + " in " + in waitForMediaSizeChange() 149 final PrinterId printerId, final MediaSize mediaSize, final boolean isAvailable) in changeCapabilities() argument 152 () -> session.addPrinters(generatePrinters(printerId, mediaSize, isAvailable ? in changeCapabilities()
|
D | CustomPrintOptionsTest.java | 245 final PageRange[] pages, final MediaSize mediaSize, final boolean isPortrait, in testCase() argument 253 if (mediaSize != null) { in testCase() 255 additionalAttributesBuilder.setMediaSize(mediaSize.asPortrait()); in testCase() 256 newAttributesBuilder.setMediaSize(mediaSize.asPortrait()); in testCase() 258 additionalAttributesBuilder.setMediaSize(mediaSize.asLandscape()); in testCase() 259 newAttributesBuilder.setMediaSize(mediaSize.asLandscape()); in testCase() 304 if (mediaSize != null || colorMode != null || duplexMode != null in testCase()
|
D | PrintAttributesTest.java | 102 private PrintAttributes createAttributes(MediaSize mediaSize, int colorMode, int duplexMode, in createAttributes() argument 104 if (mediaSize == null && colorMode == 0 && duplexMode == 0 && resolution == null) { in createAttributes() 110 if (mediaSize != null) { in createAttributes() 111 builder.setMediaSize(mediaSize); in createAttributes()
|
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/ |
D | BasePrintTest.java | 670 protected void changeMediaSize(String mediaSize) throws UiObjectNotFoundException, IOException { in changeMediaSize() argument 676 UiObject mediaSizeOption = uiDevice.findObject(new UiSelector().text(mediaSize)); in changeMediaSize()
|