Home
last modified time | relevance | path

Searched refs:mediaSizes (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/print/src/android/print/cts/
DPrintAttributesTest.java147 final Margins minMargins, final MediaSize mediaSizes[], in createMockPrinterDiscoverySessionCallbacks() argument
164 int mediaSizesLength = mediaSizes.length; in createMockPrinterDiscoverySessionCallbacks()
166 if (mediaSizes[i].equals(defaultMediaSize)) { in createMockPrinterDiscoverySessionCallbacks()
167 builder.addMediaSize(mediaSizes[i], true); in createMockPrinterDiscoverySessionCallbacks()
169 builder.addMediaSize(mediaSizes[i], false); in createMockPrinterDiscoverySessionCallbacks()
275 private PrintDocumentAdapter setUpPrinter(Margins minMargins, MediaSize mediaSizes[],
279 createMockPrinterDiscoverySessionCallbacks(minMargins, mediaSizes,
366 private void baseTest(Margins minMargins, MediaSize mediaSizes[],
372 setUpPrinter(minMargins, mediaSizes, defaultMediaSize, colorModes, defaultColorMode,
395 if (suggestedMediaSize != null && Arrays.asList(mediaSizes).contains(suggestedMediaSize)) {
DPrinterCapabilitiesTest.java193 MediaSize[] mediaSizes = {MediaSize.ISO_A0, MediaSize.ISO_A0, in sanePrinterCapabilityInfos()
204 for (int mediaSizeIndex = 1; mediaSizeIndex < mediaSizes.length; in sanePrinterCapabilityInfos()
206 for (int resolutionIndex = 1; resolutionIndex < mediaSizes.length; in sanePrinterCapabilityInfos()
221 b.addMediaSize(mediaSizes[i], i == mediaSizeIndex - 1); in sanePrinterCapabilityInfos()
254 assertEquals(mediaSizes[mediaSizeIndex - 1], in sanePrinterCapabilityInfos()
257 assertTrue(cap.getMediaSizes().contains(mediaSizes[i])); in sanePrinterCapabilityInfos()