/cts/tests/tests/print/src/android/print/cts/ |
D | PrintServicesTest.java | 112 List<PrinterInfo> printers = new ArrayList<>(); in createMockPrinterDiscoverySessionCallbacks() local 131 printers.add(sPrinter); in createMockPrinterDiscoverySessionCallbacks() 133 session.addPrinters(printers); in createMockPrinterDiscoverySessionCallbacks() 339 ArrayList<PrinterInfo> printers = new ArrayList<>(1); 340 printers.add(printer); 341 sessionCallbacks.getSession().addPrinters(printers); 602 List<PrinterInfo> printers = new ArrayList<>(); 603 printers.add(printer1); 604 printers.add(printer2); 605 session.addPrinters(printers);
|
D | PrinterCapabilitiesTest.java | 203 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()
|
D | PrinterDiscoverySessionLifecycleTest.java | 634 ArrayList<PrinterInfo> printers = new ArrayList<>(); in addRemovePrinters() local 635 printers.add(printer1); in addRemovePrinters() 636 runOnMainThread(() -> session[0].addPrinters(printers)); in addRemovePrinters() 639 printers.add(printer2); in addRemovePrinters() 640 printers.add(printer3); in addRemovePrinters() 641 runOnMainThread(() -> session[0].addPrinters(printers)); in addRemovePrinters() 742 List<PrinterInfo> printers = new ArrayList<>(); in createFirstMockPrinterDiscoverySessionCallbacks() 743 printers.add(updatedPrinter); in createFirstMockPrinterDiscoverySessionCallbacks() 744 session.addPrinters(printers); in createFirstMockPrinterDiscoverySessionCallbacks()
|
D | PrinterInfoTest.java | 126 List<PrinterInfo> printers = new ArrayList<>(); in createFirstMockPrinterDiscoverySessionCallbacks() local 150 + printers in createFirstMockPrinterDiscoverySessionCallbacks() 281 printers.add(printer); in createFirstMockPrinterDiscoverySessionCallbacks() 291 sDiscoverySession.addPrinters(printers); in createFirstMockPrinterDiscoverySessionCallbacks()
|
D | InteractionBetweenPrintDocumentAndPrinterDiscovery.java | 72 List<PrinterInfo> printers = new ArrayList<>(); in addPrinter() local 84 printers.add(testPrinter); in addPrinter() 86 session.addPrinters(printers); in addPrinter()
|
D | PrintDocumentInfoTest.java | 291 List<PrinterInfo> printers = new ArrayList<>(); in createFirstMockDiscoverySessionCallbacks() local 308 printers.add(firstPrinter); in createFirstMockDiscoverySessionCallbacks() 310 session.addPrinters(printers); in createFirstMockDiscoverySessionCallbacks()
|
D | PrintJobStateTransitionsTest.java | 102 ArrayList<PrinterInfo> printers = new ArrayList<>(1); in createFirstMockPrinterDiscoverySessionCallbacks() local 103 printers.add(printer.build()); in createFirstMockPrinterDiscoverySessionCallbacks() 105 sDiscoverySession.addPrinters(printers); in createFirstMockPrinterDiscoverySessionCallbacks()
|
D | PrinterCapabilitiesChangeTest.java | 88 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()
|
D | PageRangeAdjustAndVerify.java | 378 List<PrinterInfo> printers = new ArrayList<>(); in createMockFirstPrinterDiscoverySessionCallbacks() local 394 printers.add(firstPrinter); in createMockFirstPrinterDiscoverySessionCallbacks() 396 session.addPrinters(printers); in createMockFirstPrinterDiscoverySessionCallbacks()
|
D | InterfaceForAppsTest.java | 91 ArrayList<PrinterInfo> printers = new ArrayList<>(1); in createFirstMockPrinterDiscoverySessionCallbacks() local 92 printers.add(printer.build()); in createFirstMockPrinterDiscoverySessionCallbacks() 94 session.addPrinters(printers); in createFirstMockPrinterDiscoverySessionCallbacks()
|
D | CustomPrintOptionsTest.java | 122 List<PrinterInfo> printers = new ArrayList<>(1); in setUpServicesAndAdapter() 136 printers.add(new PrinterInfo.Builder(printerId, PRINTER_NAME, in setUpServicesAndAdapter() 139 session.addPrinters(printers); in setUpServicesAndAdapter()
|
D | PrintAttributesTest.java | 156 List<PrinterInfo> printers = new ArrayList<>(); in createMockPrinterDiscoverySessionCallbacks() local 198 printers.add(printer); in createMockPrinterDiscoverySessionCallbacks() 200 session.addPrinters(printers); in createMockPrinterDiscoverySessionCallbacks()
|
D | PageRangeAdjustmentTest.java | 514 List<PrinterInfo> printers = new ArrayList<>(); in createMockFirstPrinterDiscoverySessionCallbacks() local 531 printers.add(firstPrinter); in createMockFirstPrinterDiscoverySessionCallbacks() 533 session.addPrinters(printers); in createMockFirstPrinterDiscoverySessionCallbacks()
|
D | PrintJobTest.java | 101 ArrayList<PrinterInfo> printers = new ArrayList<>(1); in createFirstMockPrinterDiscoverySessionCallbacks() local 102 printers.add(printer.build()); in createFirstMockPrinterDiscoverySessionCallbacks() 104 sDiscoverySession.addPrinters(printers); in createFirstMockPrinterDiscoverySessionCallbacks()
|
D | PrintDocumentAdapterContractTest.java | 1951 List<PrinterInfo> printers = new ArrayList<>(); in createFirstMockDiscoverySessionCallbacks() local 1968 printers.add(firstPrinter); in createFirstMockDiscoverySessionCallbacks() 1992 printers.add(secondPrinter); in createFirstMockDiscoverySessionCallbacks() 2012 printers.add(thirdPrinter); in createFirstMockDiscoverySessionCallbacks() 2014 session.addPrinters(printers); in createFirstMockDiscoverySessionCallbacks() 2034 printers.add(forthPrinter); in createFirstMockDiscoverySessionCallbacks() 2036 session.addPrinters(printers); in createFirstMockDiscoverySessionCallbacks()
|