Home
last modified time | relevance | path

Searched refs:printers (Results 1 – 15 of 15) sorted by relevance

/cts/tests/tests/print/src/android/print/cts/
DPrinterCapabilitiesTest.java203 ArrayList<PrinterInfo> printers = new ArrayList<>(); in sanePrinterCapabilityInfos()
213 .generatePrinterId(Integer.valueOf(printers.size()) in sanePrinterCapabilityInfos()
246 Integer.valueOf(printers.size()).toString(), in sanePrinterCapabilityInfos()
278 printers.add(printer); in sanePrinterCapabilityInfos()
284 session.addPrinters(printers); in sanePrinterCapabilityInfos()
330 ArrayList<PrinterInfo> printers = new ArrayList<>(); in testPrinterCapabilityInfo()
331 printers.add((new PrinterInfo.Builder(printerId, PRINTER_NAME, in testPrinterCapabilityInfo()
335 session.addPrinters(printers); in testPrinterCapabilityInfo()
DPrintServicesTest.java117 List<PrinterInfo> printers = new ArrayList<>(); in createMockPrinterDiscoverySessionCallbacks() local
136 printers.add(sPrinter); in createMockPrinterDiscoverySessionCallbacks()
138 session.addPrinters(printers); in createMockPrinterDiscoverySessionCallbacks()
344 ArrayList<PrinterInfo> printers = new ArrayList<>(1);
345 printers.add(printer);
346 sessionCallbacks.getSession().addPrinters(printers);
611 List<PrinterInfo> printers = new ArrayList<>();
612 printers.add(printer1);
613 printers.add(printer2);
614 session.addPrinters(printers);
DPrinterDiscoverySessionLifecycleTest.java629 ArrayList<PrinterInfo> printers = new ArrayList<>(); in addRemovePrinters() local
630 printers.add(printer1); in addRemovePrinters()
631 runOnMainThread(() -> session[0].addPrinters(printers)); in addRemovePrinters()
634 printers.add(printer2); in addRemovePrinters()
635 printers.add(printer3); in addRemovePrinters()
636 runOnMainThread(() -> session[0].addPrinters(printers)); in addRemovePrinters()
734 List<PrinterInfo> printers = new ArrayList<>(); in createFirstMockPrinterDiscoverySessionCallbacks()
735 printers.add(updatedPrinter); in createFirstMockPrinterDiscoverySessionCallbacks()
736 session.addPrinters(printers); in createFirstMockPrinterDiscoverySessionCallbacks()
DPrinterInfoTest.java128 List<PrinterInfo> printers = new ArrayList<>(); in createFirstMockPrinterDiscoverySessionCallbacks() local
152 + printers in createFirstMockPrinterDiscoverySessionCallbacks()
283 printers.add(printer); in createFirstMockPrinterDiscoverySessionCallbacks()
293 sDiscoverySession.addPrinters(printers); in createFirstMockPrinterDiscoverySessionCallbacks()
DInteractionBetweenPrintDocumentAndPrinterDiscovery.java72 List<PrinterInfo> printers = new ArrayList<>(); in addPrinter() local
84 printers.add(testPrinter); in addPrinter()
86 session.addPrinters(printers); in addPrinter()
DPrintDocumentInfoTest.java291 List<PrinterInfo> printers = new ArrayList<>(); in createFirstMockDiscoverySessionCallbacks() local
308 printers.add(firstPrinter); in createFirstMockDiscoverySessionCallbacks()
310 session.addPrinters(printers); in createFirstMockDiscoverySessionCallbacks()
DPrintJobStateTransitionsTest.java102 ArrayList<PrinterInfo> printers = new ArrayList<>(1); in createFirstMockPrinterDiscoverySessionCallbacks() local
103 printers.add(printer.build()); in createFirstMockPrinterDiscoverySessionCallbacks()
105 sDiscoverySession.addPrinters(printers); in createFirstMockPrinterDiscoverySessionCallbacks()
DPrinterCapabilitiesChangeTest.java88 List<PrinterInfo> printers = new ArrayList<>(1); in generatePrinters() local
107 printers.add(new PrinterInfo.Builder(printerId, PRINTER_NAME, status).setCapabilities(cap) in generatePrinters()
110 return printers; in generatePrinters()
DInterfaceForAppsTest.java91 ArrayList<PrinterInfo> printers = new ArrayList<>(1); in createFirstMockPrinterDiscoverySessionCallbacks() local
92 printers.add(printer.build()); in createFirstMockPrinterDiscoverySessionCallbacks()
94 session.addPrinters(printers); in createFirstMockPrinterDiscoverySessionCallbacks()
DCustomPrintOptionsTest.java135 List<PrinterInfo> printers = new ArrayList<>(1); in setUpServicesAndAdapter()
149 printers.add(new PrinterInfo.Builder(printerId, PRINTER_NAME, in setUpServicesAndAdapter()
152 session.addPrinters(printers); in setUpServicesAndAdapter()
DPageRangeAdjustAndVerify.java378 List<PrinterInfo> printers = new ArrayList<>(); in createMockFirstPrinterDiscoverySessionCallbacks() local
394 printers.add(firstPrinter); in createMockFirstPrinterDiscoverySessionCallbacks()
396 session.addPrinters(printers); in createMockFirstPrinterDiscoverySessionCallbacks()
DPrintAttributesTest.java156 List<PrinterInfo> printers = new ArrayList<>(); in createMockPrinterDiscoverySessionCallbacks() local
198 printers.add(printer); in createMockPrinterDiscoverySessionCallbacks()
200 session.addPrinters(printers); in createMockPrinterDiscoverySessionCallbacks()
DPageRangeAdjustmentTest.java515 List<PrinterInfo> printers = new ArrayList<>(); in createMockFirstPrinterDiscoverySessionCallbacks() local
532 printers.add(firstPrinter); in createMockFirstPrinterDiscoverySessionCallbacks()
534 session.addPrinters(printers); in createMockFirstPrinterDiscoverySessionCallbacks()
DPrintJobTest.java101 ArrayList<PrinterInfo> printers = new ArrayList<>(1); in createFirstMockPrinterDiscoverySessionCallbacks() local
102 printers.add(printer.build()); in createFirstMockPrinterDiscoverySessionCallbacks()
104 sDiscoverySession.addPrinters(printers); in createFirstMockPrinterDiscoverySessionCallbacks()
DPrintDocumentAdapterContractTest.java1994 List<PrinterInfo> printers = new ArrayList<>(); in createFirstMockDiscoverySessionCallbacks() local
2011 printers.add(firstPrinter); in createFirstMockDiscoverySessionCallbacks()
2035 printers.add(secondPrinter); in createFirstMockDiscoverySessionCallbacks()
2055 printers.add(thirdPrinter); in createFirstMockDiscoverySessionCallbacks()
2057 session.addPrinters(printers); in createFirstMockDiscoverySessionCallbacks()