Searched refs:mediaSize (Results 1 – 6 of 6) 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 | 232 final PageRange[] pages, final MediaSize mediaSize, final boolean isPortrait, in testCase() argument 240 if (mediaSize != null) { in testCase() 242 additionalAttributesBuilder.setMediaSize(mediaSize.asPortrait()); in testCase() 243 newAttributesBuilder.setMediaSize(mediaSize.asPortrait()); in testCase() 245 additionalAttributesBuilder.setMediaSize(mediaSize.asLandscape()); in testCase() 246 newAttributesBuilder.setMediaSize(mediaSize.asLandscape()); in testCase() 291 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/libs/helpers/interfaces/src/com/android/cts/helpers/ |
D | ICtsPrintHelper.java | 92 void setMediaSize(String mediaSize); in setMediaSize() argument
|
/cts/helpers/default/src/com/android/cts/helpers/aosp/ |
D | DefaultCtsPrintHelper.java | 232 public void setMediaSize(String mediaSize) throws TestHelperException { in setMediaSize() argument 237 UiObject mediaSizeOption = mDevice.findObject(new UiSelector().text(mediaSize)); in setMediaSize() 241 throw new TestHelperException("Unable to set media size to " + mediaSize, e); in setMediaSize()
|
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/ |
D | BasePrintTest.java | 595 protected void changeMediaSize(String mediaSize) throws TestHelperException { in changeMediaSize() argument 596 mPrintHelper.setMediaSize(mediaSize); in changeMediaSize()
|