Home
last modified time | relevance | path

Searched refs:printAttributes (Results 1 – 7 of 7) sorted by relevance

/cts/tests/tests/print/src/android/print/cts/
DPrintDocumentAdapterContractTest.java85 final PrintAttributes[] printAttributes = new PrintAttributes[1]; in noPrintOptionsOrPrinterChange() local
90 printAttributes[0] = (PrintAttributes) invocation.getArguments()[1]; in noPrintOptionsOrPrinterChange()
105 writeBlankPages(printAttributes[0], fd, pages[0].getStart(), pages[0].getEnd()); in noPrintOptionsOrPrinterChange()
253 PrintAttributes printAttributes = in nonCallingBackWrite()
261 lastLayoutPrintAttributes[0] != printAttributes); in nonCallingBackWrite()
263 lastLayoutPrintAttributes[0] = printAttributes; in nonCallingBackWrite()
324 PrintAttributes printAttributes = in nonChangePrinterWhileNotWritten()
332 lastLayoutPrintAttributes[0] != printAttributes); in nonChangePrinterWhileNotWritten()
334 lastLayoutPrintAttributes[0] = printAttributes; in nonChangePrinterWhileNotWritten()
392 final PrintAttributes[] printAttributes = new PrintAttributes[1]; in printOptionsChangeAndNoPrinterChange() local
[all …]
DPageRangeAdjustmentTest.java162 final PrintAttributes[] printAttributes = new PrintAttributes[1]; in somePagesWantedAndAllPagesWritten() local
171 printAttributes[0] = (PrintAttributes) invocation.getArguments()[1]; in somePagesWantedAndAllPagesWritten()
187 writeBlankPages(printAttributes[0], fd, 0, PAGE_COUNT - 1); in somePagesWantedAndAllPagesWritten()
253 final PrintAttributes[] printAttributes = new PrintAttributes[1]; in somePagesWantedAndSomeMorePagesWritten() local
262 printAttributes[0] = (PrintAttributes) invocation.getArguments()[1]; in somePagesWantedAndSomeMorePagesWritten()
284 … writeBlankPages(printAttributes[0], fd, pages[0].getStart(), pages[0].getEnd()); in somePagesWantedAndSomeMorePagesWritten()
288 writeBlankPages(printAttributes[0], fd, REQUESTED_PAGE - 1, REQUESTED_PAGE); in somePagesWantedAndSomeMorePagesWritten()
344 final PrintAttributes[] printAttributes = new PrintAttributes[1]; in somePagesWantedAndNotWritten() local
353 printAttributes[0] = (PrintAttributes) invocation.getArguments()[1]; in somePagesWantedAndNotWritten()
374 writeBlankPages(printAttributes[0], fd, pages[0].getStart(), pages[0].getEnd()); in somePagesWantedAndNotWritten()
[all …]
DInteractionBetweenPrintDocumentAndPrinterDiscovery.java116 PrintAttributes[] printAttributes = new PrintAttributes[1]; in printerReappearsWhileCanceling() local
126 printAttributes[0] = (PrintAttributes) args[1]; in printerReappearsWhileCanceling()
140 writeBlankPages(printAttributes[0], fd, 0, 1); in printerReappearsWhileCanceling()
DPrinterCapabilitiesChangeTest.java122 private void waitForMediaSizeChange(PrintAttributes[] printAttributes, MediaSize mediaSize) in waitForMediaSizeChange() argument
126 while (printAttributes[0] == null || in waitForMediaSizeChange()
127 !printAttributes[0].getMediaSize().equals(mediaSize)) { in waitForMediaSizeChange()
134 + printAttributes[0]); in waitForMediaSizeChange()
DPageRangeAdjustAndVerify.java262 final PrintAttributes[] printAttributes = new PrintAttributes[1]; in adjustPageRangeAndVerifyPages() local
269 boolean changed = !Objects.equals(printAttributes[0], in adjustPageRangeAndVerifyPages()
272 printAttributes[0] = (PrintAttributes) invocation.getArguments()[1]; in adjustPageRangeAndVerifyPages()
302 printAttributes[0]); in adjustPageRangeAndVerifyPages()
DPrintDocumentInfoTest.java122 final PrintAttributes[] printAttributes = new PrintAttributes[1]; in printDocumentBaseTest() local
127 printAttributes[0] = (PrintAttributes) invocation.getArguments()[1]; in printDocumentBaseTest()
136 writeBlankPages(printAttributes[0], fd, 0, 1); in printDocumentBaseTest()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DBasePrintTest.java863 final PrintAttributes[] printAttributes = new PrintAttributes[1]; in createDefaultPrintDocumentAdapter() local
868 printAttributes[0] = (PrintAttributes) invocation.getArguments()[1]; in createDefaultPrintDocumentAdapter()
875 !Objects.equals(oldAttributes, printAttributes[0])); in createDefaultPrintDocumentAdapter()
886 writeBlankPages(printAttributes[0], fd, pages[0].getStart(), pages[0].getEnd()); in createDefaultPrintDocumentAdapter()